Repository navigation
Possible to swap out markdown renderer? #7408
|
I'm wondering if it is possible to swap out the markdown renderer. For example I would prefer https://markdoc.io/ but stick with Docusaurus for the overall DX it offers out of the box. Is this possible or is MDX hardcoded and it isn't possible to replace the renderer? |
Replies: 1 comment 2 replies
|
I'd like to make this possible to swap the MDX renderer by anything else (including regular MD, Markdoc...), but it might be complicated to achieve technically. We have built a good amount of tooling on top of the mdx/unified/remark/rehype ecosystem, to handle things like assets and relative.md links, it could be complicated to reproduce all this in a brand new ecosystem without significant effort I don't think Markdoc can play well with MDX, but willing to see someone do a poc and prove othise. IMHO it's either MDX or Markdoc, not both at the same time Why would you prefer Markdoc over MDX btw, do you have specific reasons? |
I'd like to make this possible to swap the MDX renderer by anything else (including regular MD, Markdoc...), but it might be complicated to achieve technically.
We have built a good amount of tooling on top of the mdx/unified/remark/rehype ecosystem, to handle things like assets and relative.md links, it could be complicated to reproduce all this in a brand new ecosystem without significant effort
I don't think Markdoc can play well with MDX, but willing to see someone do a poc and prove othise. IMHO it's either MDX or Markdoc, not both at the same time
Why would you prefer Markdoc over MDX btw, do you have specific reasons?