Skip to content

Commit a855b8e

Browse files
committed
Fix: Prevent auto-closing of angle brackets in LaTeX blocks
1 parent f958c6f commit a855b8e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

extensions/markdown-basics/language-configuration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"open": "<",
4040
"close": ">",
4141
"notIn": [
42-
"string"
42+
"string", "latex"
4343
]
4444
},
4545
],

extensions/markdown-basics/syntaxes/markdown.tmLanguage.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
{
2525
"include": "#heading"
2626
},
27+
{
28+
"include": "#latex"
29+
},
2730
{
2831
"include": "#blockquote"
2932
},
@@ -50,6 +53,12 @@
5053
}
5154
]
5255
},
56+
"latex": {
57+
"name": "markup.math.latex.markdown",
58+
"begin": "\\$\\$?",
59+
"end": "\\$\\$?",
60+
"patterns": []
61+
},
5362
"blockquote": {
5463
"begin": "(^|\\G)[ ]{0,3}(>) ?",
5564
"captures": {
@@ -3268,4 +3277,4 @@
32683277
"name": "markup.strikethrough.markdown"
32693278
}
32703279
}
3271-
}
3280+
}

0 commit comments

Comments
 (0)