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.
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.
Now the second $ in the example above will not be treated as an inline math block closer.