Adopt strike through for markdown

Fixes #43504

Picks up new markdown grammar with strikethrough support and also adopts it for our built-in themes
This commit is contained in:
Matt Bierner
2022-01-05 15:13:35 -08:00
parent 9ed5a855c1
commit 80ce88bc6a
14 changed files with 152 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/c2bb8faa5501da4d3a7544b029e5abc5355ef673",
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/a8545b220dc2cb109835571ba3458ff138e97361",
"name": "Markdown",
"scopeName": "text.html.markdown",
"patterns": [
@@ -2436,6 +2436,9 @@
{
"include": "#raw"
},
{
"include": "#strikethrough"
},
{
"include": "#escape"
},
@@ -2531,6 +2534,9 @@
},
{
"include": "#link-ref-shortcut"
},
{
"include": "#strikethrough"
}
]
},
@@ -2682,6 +2688,9 @@
},
{
"include": "#link-ref-shortcut"
},
{
"include": "#strikethrough"
}
]
},
@@ -2841,8 +2850,76 @@
"name": "punctuation.definition.raw.markdown"
}
},
"match": "(`+)([^`]|(?!(?<!`)\\1(?!`))`)*+(\\1)",
"match": "(`+)((?:[^`]|(?!(?<!`)\\1(?!`))`)*+)(\\1)",
"name": "markup.inline.raw.string.markdown"
},
"strikethrough": {
"captures": {
"1": {
"name": "punctuation.definition.strikethrough.markdown"
},
"2": {
"patterns": [
{
"applyEndPatternLast": 1,
"begin": "(?=<[^>]*?>)",
"end": "(?<=>)",
"patterns": [
{
"include": "text.html.derivative"
}
]
},
{
"include": "#escape"
},
{
"include": "#ampersand"
},
{
"include": "#bracket"
},
{
"include": "#raw"
},
{
"include": "#bold"
},
{
"include": "#italic"
},
{
"include": "#image-inline"
},
{
"include": "#link-inline"
},
{
"include": "#link-inet"
},
{
"include": "#link-email"
},
{
"include": "#image-ref"
},
{
"include": "#link-ref-literal"
},
{
"include": "#link-ref"
},
{
"include": "#link-ref-shortcut"
}
]
},
"3": {
"name": "punctuation.definition.strikethrough.markdown"
}
},
"match": "(~+)((?:[^~]|(?!(?<!~)\\1(?!~))~)*+)(\\1)",
"name": "markup.strikethrough.markdown"
}
}
}