vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.25k stars 2.14k forks source link

Console throws an error when the markdown content includes ` {{a.xxx}} ` #4265

Closed zhourunjie1988 closed 1 month ago

zhourunjie1988 commented 1 month ago

When the Markdown content includes expressions like `{{a.xxx}}`\, the console throws an error: "Cannot read properties of undefined". I tried to modify the original Markdown to the content below:

<code>&lbrace;&lbrace; {{a.xxx}} &rbrace;&rbrace;</code>

and it renders correctly. Is there a better solution? Why is the content inside `` parsed as an expression? image

brc-dd commented 1 month ago

https://github.com/vuejs/vitepress/discussions/480