Closed ddejohn closed 5 years ago
Hi @ddejohn, For inline math, the syntax is using single dollar sign to surround math. like:
$a = b + c$
For block math, the syntax is using double dollar sign and newlines to surround math. like:
$$
a = b + c
$$
So that the syntax highlighting will be rendered properly.
Weeelp I feel like an idiot.
Is this a hackmd.io issue?
What's the problem
Syntax highlighting breaks after using a LaTeX math block.
Current behaviour
Here is syntax highlighting working: https://i.imgur.com/mWrGcbO.png
Converting the inline math to a math block breaks the highlighting for the rest of the document: https://i.imgur.com/6FipNlv.png
See line 47 in the screenshots.
Steps to reproduce
I use HackMD on:
Desktop
It's not the end of the world, but when managing a large document, it is frustrating not having the visual aid for being able to find certain parts to edit.