2021-06-18 01:01:02 +00:00
|
|
|
{
|
|
|
|
"fileTypes": [],
|
2021-07-01 22:46:29 +00:00
|
|
|
"injectionSelector": "L:meta.paragraph.markdown - (comment, string, markup.math.inline.markdown, markup.fenced_code.block.markdown)",
|
2021-06-18 01:01:02 +00:00
|
|
|
"patterns": [
|
|
|
|
{
|
2021-11-09 01:43:46 +00:00
|
|
|
"include": "#math_inline_double"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "#math_inline_single"
|
2021-10-20 22:56:07 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "#math_inline_block"
|
2021-06-18 01:01:02 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"repository": {
|
2021-11-09 01:43:46 +00:00
|
|
|
"math_inline_single": {
|
|
|
|
"name": "markup.math.inline.markdown",
|
|
|
|
"match": "(?<=\\s|\\W|^)(?<!\\$)(\\$)(.+?)(\\$)(?!\\$)(?=\\s|\\W|$)",
|
|
|
|
"captures": {
|
|
|
|
"1": {
|
|
|
|
"name": "punctuation.definition.math.begin.markdown"
|
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"name": "meta.embedded.math.markdown",
|
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"include": "text.html.markdown.math#math"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"3": {
|
2023-02-01 14:44:37 +00:00
|
|
|
"name": "punctuation.definition.math.end.markdown"
|
2021-11-09 01:43:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"math_inline_double": {
|
2021-06-18 01:01:02 +00:00
|
|
|
"name": "markup.math.inline.markdown",
|
2021-11-09 01:43:46 +00:00
|
|
|
"match": "(?<=\\s|\\W|^)(?<!\\$)(\\$\\$)(.+?)(\\$\\$)(?!\\$)(?=\\s|\\W|$)",
|
2021-06-18 01:01:02 +00:00
|
|
|
"captures": {
|
|
|
|
"1": {
|
|
|
|
"name": "punctuation.definition.math.begin.markdown"
|
|
|
|
},
|
|
|
|
"2": {
|
2021-10-20 21:22:44 +00:00
|
|
|
"name": "meta.embedded.math.markdown",
|
2021-06-18 01:01:02 +00:00
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"include": "text.html.markdown.math#math"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"3": {
|
2023-02-01 14:44:37 +00:00
|
|
|
"name": "punctuation.definition.math.end.markdown"
|
2021-06-18 01:01:02 +00:00
|
|
|
}
|
|
|
|
}
|
2021-10-20 22:56:07 +00:00
|
|
|
},
|
|
|
|
"math_inline_block": {
|
|
|
|
"name": "markup.math.inline.markdown",
|
|
|
|
"contentName": "meta.embedded.math.markdown",
|
|
|
|
"begin": "(?<=\\s|^)(\\${2})",
|
|
|
|
"beginCaptures": {
|
|
|
|
"2": {
|
|
|
|
"name": "punctuation.definition.math.begin.markdown"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"end": "(\\${2})(?=\\s|$)",
|
|
|
|
"endCaptures": {
|
|
|
|
"2": {
|
|
|
|
"name": "punctuation.definition.math.end.markdown"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"include": "text.html.markdown.math#math"
|
|
|
|
}
|
|
|
|
]
|
2021-06-18 01:01:02 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"scopeName": "markdown.math.inline"
|
|
|
|
}
|