mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Allow leading and trailing math on same line as math block
Fixes #134893
This commit is contained in:
@@ -12,9 +12,10 @@
|
||||
"repository": {
|
||||
"double_dollar_math_block": {
|
||||
"name": "markup.math.block.markdown",
|
||||
"begin": "(?<=(^|\\G)\\s*)(\\${2})(?=\\s*$)",
|
||||
"contentName": "meta.embedded.math.markdown",
|
||||
"begin": "(?<=^\\s*)(\\${2})",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.math.begin.markdown"
|
||||
}
|
||||
},
|
||||
@@ -26,22 +27,16 @@
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(^|\\G)(\\s*)(.*)",
|
||||
"while": "(^|\\G)(?!.*(\\${2}))",
|
||||
"contentName": "meta.embedded.math.markdown",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.markdown.math#math"
|
||||
}
|
||||
]
|
||||
"include": "text.html.markdown.math#math"
|
||||
}
|
||||
]
|
||||
},
|
||||
"single_dollar_math_block": {
|
||||
"name": "markup.math.block.markdown",
|
||||
"begin": "(?<=(^|\\G)\\s*)(\\${1})(?=\\s*$)",
|
||||
"contentName": "meta.embedded.math.markdown",
|
||||
"begin": "(?<=^\\s*)(\\${1})",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.math.begin.markdown"
|
||||
}
|
||||
},
|
||||
@@ -53,14 +48,7 @@
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(^|\\G)(\\s*)(.*)",
|
||||
"while": "(^|\\G)(?!.*(\\${1}))",
|
||||
"contentName": "meta.embedded.math.markdown",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.markdown.math#math"
|
||||
}
|
||||
]
|
||||
"include": "text.html.markdown.math#math"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user