These MDX global variables do not seem to be available in scope #2400
-
I help to maintain a website that uses Docusaurus and MDX to build HTML from Markdown files. In preparation for migrating the site to Docusaurus 3.0, I've run the mdx-validator tool. One of the errors is this:
The text referred to is some syntax for part of an SQL statement: The syntax is between single tick marks because it is being used as a heading for the accompanying description, though it isn't a real heading with one or more # characters at the front of it. How can I prevent MDX from parsing these keywords as MDX global variables and generating the error message? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Welcome @rheath-dremio! 👋
There are quite a few options, the two I'd recommend:
|
Beta Was this translation helpful? Give feedback.
Welcome @rheath-dremio! 👋
Sorry you ran into some confusion.
There are quite a few options, the two I'd recommend:
\
escapes before the{
to ensure they are not interpreted as a JavaScript expression.`
or```