microsoft / vscode-markdown-it-katex

Add Math to your Markdown with a KaTeX plugin for Markdown-it
Other
15 stars 16 forks source link

Check dangling dollar symbol in markdown block #1

Closed JihongGan closed 1 year ago

JihongGan commented 2 years ago

This PR aims to fix #138970. When checking if a $ is a valid inline delimiter, this PR adds a check for whether a $ is the first or last in a markdown block.

<code>$x</code> `${a}`

Now the second $ in the example above will not be treated as an inline math block closer.