Merge pull request #1029 from Guldoman/PR_math_md

`language_md`: Add math delimiters
This commit is contained in:
Jefferson González 2022-06-15 15:32:57 -04:00 committed by GitHub
commit 2dc0a5664d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ syntax.add {
{ pattern = "&#?[a-zA-Z0-9]+;", type = "keyword2" },
---- Markdown rules
-- math
{ pattern = { "%$%$", "%$%$", "\\" }, type = "string", syntax = ".tex"},
{ pattern = { "%$", "%$", "\\" }, type = "string", syntax = ".tex"},
-- code blocks
{ pattern = { "```c++", "```" }, type = "string", syntax = ".cpp" },
{ pattern = { "```cpp", "```" }, type = "string", syntax = ".cpp" },