fix: proper escaping for math mode
This commit is contained in:
parent
1c8bd551db
commit
897e8d6aa3
|
@ -70,7 +70,7 @@ add-highlighter shared/latex/content/ regex '(?<!\\)(?:\\\\)*\K#+[1-9]' 0:string
|
||||||
add-highlighter shared/latex/content/ regex '(?<!\\)(?:\\\\)*\K\{([\s/;,\w\d]+)\}' 1:string
|
add-highlighter shared/latex/content/ regex '(?<!\\)(?:\\\\)*\K\{([\s/;,\w\d]+)\}' 1:string
|
||||||
|
|
||||||
# Math mode between dollar signs/pairs
|
# Math mode between dollar signs/pairs
|
||||||
add-highlighter shared/latex/content/ regex '((?<!\\)\$(\\\$|[^$])+\$)|((?<!\\)\$\$(\\\$|[^$])+\$\$)|((?<!\\)\\\[.*?\\\])|(\\\(.*?\\\))' 0:meta
|
add-highlighter shared/latex/content/ regex '((?<!\\)(?:\\\\)*\K\$(\\\$|[^$])+\$)|((?<!\\)(?:\\\\)*\K\$\$(\\\$|[^$])+\$\$)|((?<!\\)(?:\\\\)*\K\\\[.*?\\\])|(\\\(.*?\\\))' 0:meta
|
||||||
|
|
||||||
# Indent
|
# Indent
|
||||||
# ------
|
# ------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user