/react-markdown-typescript

Testing Typescript usage with ReactMarkdown

Primary LanguageTypeScript

ReactMarkdown Testing

Start

  1. Clone repo
  2. npm i
  3. npm run dev
  4. Open JavaScript console and inspect the nodes which correspond to the three code fences in src/App.tsx:

meta data without rehype-raw

  1. Open src/App.tsx and uncomment out line 104 to enable the reype-raw plugin
    remarkPlugins={[gfm]}
-    // rehypePlugins={[rehypeRaw]}
+    rehypePlugins={[rehypeRaw]}
    children={markdown}
  1. Re-inspect the nodes to see the missing information:

no meta data with rehype-raw