mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
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:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user