language_md: Limit inline math mode to the current line
This commit is contained in:
@@ -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" },
|
||||||
|
|||||||
Reference in New Issue
Block a user