Merge pull request #1064 from Guldoman/PR_md_single_math

`language_md`: Limit inline math mode to the current line
This commit is contained in:
Jefferson González
2022-07-05 18:01:59 -04:00
committed by GitHub
+1 -1
View File
@@ -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" },