`language_md`: Limit inline math mode to the current line
This commit is contained in:
parent
438ed6984a
commit
92c2815aa4
|
@ -110,7 +110,7 @@ syntax.add {
|
||||||
---- Markdown rules
|
---- Markdown rules
|
||||||
-- math
|
-- math
|
||||||
{ pattern = { "%$%$", "%$%$", "\\" }, type = "string", syntax = ".tex"},
|
{ pattern = { "%$%$", "%$%$", "\\" }, type = "string", syntax = ".tex"},
|
||||||
{ pattern = { "%$", "%$", "\\" }, type = "string", syntax = ".tex"},
|
{ regex = { "\\$", [[\$|(?=\\*\n)]], "\\" }, type = "string", syntax = ".tex"},
|
||||||
-- code blocks
|
-- code blocks
|
||||||
{ pattern = { "```c++", "```" }, type = "string", syntax = ".cpp" },
|
{ pattern = { "```c++", "```" }, type = "string", syntax = ".cpp" },
|
||||||
{ pattern = { "```cpp", "```" }, type = "string", syntax = ".cpp" },
|
{ pattern = { "```cpp", "```" }, type = "string", syntax = ".cpp" },
|
||||||
|
|
Loading…
Reference in New Issue