Closed Caralluin closed 3 weeks ago
Some math plugins for markdown uses $
as a delimiter (https://meta.stackexchange.com/a/263344/1459143). While I doubt mordant has such support, perhaps a (temporary) workaround in your case could be to escape the dollar sign (i.e. \$
or \\$
)?
perhaps a (temporary) workaround in your case could be to escape the dollar sign (i.e.
\$
or\\$
)?
Unfortunately escaping with a single backslash has no effect here. A double backslash prevents the exception, but is rendered itself before the dollar sign (\$
), which is not really a solution.
It looks like the markdown parser started parsing math syntax in https://github.com/JetBrains/markdown/issues/133. There's no way to opt-out, so I'll have to update Mordant's renderer to handle the new token types they emit. There's of course no way to render the embedded math markup itself, so I guess I'll just put it in code blocks.
Attempting to render text with a dollar sign as Markdown fails with an exception.
Example:
this fails with
What works are dollar signs within backticks: