Skip to content
Discussion options

You must be logged in to vote

MDX v2/v3 doesn't support html comments anymore (but MDX v1 did):

https://mdxjs.com/playground/


Normally Docusaurus v3 has a compat layer to still allow HTML comments in MDX docs, even without CommonMark mode. In this case, we add this remark plugin automatically: https://github.com/leebyron/remark-comment

I tried the <!-- vale off --> comment and it definitely works, so @emertechie if it's your Docusaurus site failing, please provide a repro where we can see the error in action.

Remember that you can disable this compat layer so make sure you didn't do that: https://docusaurus.io/blog/releases/3.0#markdown

export default {
  markdown: {
    mdx1Compat: {
      comments: false, // You n…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@slorber
Comment options

slorber May 6, 2025
Collaborator

Answer selected by emertechie
@emertechie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants