2 ms·
> Why do you need to typeset math within code blocks or code spans? The problem is that commonmark doesn't recognize math at all. If you want to use texme, you
by bachmeier 7y ago
> Why do you need to typeset math within code blocks or code spans?
The problem is that commonmark doesn't recognize math at all. If you want to use texme, you can't have code blocks that containing $. For it to work properly, you'd need a preprocessor to parse the whole file, convert equations in the text as needed but ignore text in code, output to a format that doesn't cause problems with commonmark (for instance, protecting underscores outside code blocks). At that point you are way beyond just "using commonmark". It's simply not suited for even moderately complicated documents.