how to write mdx in mkdocs material? #7309
-
hi. how to write mdx in mkdocs material? |
Beta Was this translation helpful? Give feedback.
Answered by
kamilkrzyskow
Jun 30, 2024
Replies: 1 comment 1 reply
-
Hello @Thecode764, Python-Markdown has support for extensions that add similar syntax functionalities, but still it's not the same, as MkDocs uses Jinja2 for templating, everything apart of the content.
If you really need to use MDX then better change the docs generator to a JavaScript-based, like Docosaurus: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kamilkrzyskow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @Thecode764,
if you mean this https://mdxjs.com/ then this is a JavaScript project, not available for Python.
Python-Markdown has support for extensions that add similar syntax functionalities, but still it's not the same, as MkDocs uses Jinja2 for templating, everything apart of the content.
See for example:
If you really need to use MDX then better change the docs generator to a JavaScript-based, like Docosaurus: