Is there a react component to render the markdown in a js page? #9802
Answered
by
Josh-Cena
LintaoAmons
asked this question in
Q&A
-
|
So I want to render a markdown the same way it rendered in the docs or blogs, but in a js Page. |
Beta Was this translation helpful? Give feedback.
Answered by
Josh-Cena
Jan 29, 2024
Replies: 1 comment 1 reply
-
|
No. Docusaurus only compiles Markdown once at build time. If your Markdown is statically available at build time, you can import it: import Document from "./document.mdx";
<Document />If you want to dynamically parse and render arbitrary Markdown, you have to bring your own Markdown parsing library. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LintaoAmons
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No. Docusaurus only compiles Markdown once at build time. If your Markdown is statically available at build time, you can import it:
If you want to dynamically parse and render arbitrary Markdown, you have to bring your own Markdown parsing library.