Skip to content

These MDX global variables do not seem to be available in scope #2400

Discussion options

You must be logged in to vote

Welcome @rheath-dremio! 👋
Sorry you ran into some confusion.

How can I prevent MDX from parsing these keywords as MDX global variables and generating the error message?

There are quite a few options, the two I'd recommend:

  1. add \ escapes before the { to ensure they are not interpreted as a JavaScript expression.
  2. or, wrap the whole statement as inline code or as a code block with ` or ```

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rheath-dremio
Comment options

@ChristianMurphy
Comment options

@rheath-dremio
Comment options

Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants