language_md: Limit inline math mode to the current line

This commit is contained in:
Guldoman
2022-06-28 20:09:36 +02:00
parent 438ed6984a
commit 92c2815aa4
+1 -1
View File
@@ -110,7 +110,7 @@ syntax.add {
---- Markdown rules
-- math
{ pattern = { "%$%$", "%$%$", "\\" }, type = "string", syntax = ".tex"},
{ pattern = { "%$", "%$", "\\" }, type = "string", syntax = ".tex"},
{ regex = { "\\$", [[\$|(?=\\*\n)]], "\\" }, type = "string", syntax = ".tex"},
-- code blocks
{ pattern = { "```c++", "```" }, type = "string", syntax = ".cpp" },
{ pattern = { "```cpp", "```" }, type = "string", syntax = ".cpp" },