Skip to content

Commit 1cd126f

Browse files
committed
Update markdown grammar
1 parent 7bb1123 commit 1cd126f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/a7e4475626a505472c76d18e0a1b3cfcf46f9cf9",
7+
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/4be9cb335581f3559166c319607dac9100103083",
88
"name": "Markdown",
99
"scopeName": "text.html.markdown",
1010
"patterns": [
@@ -1963,12 +1963,12 @@
19631963
"name": "markup.fenced_code.block.markdown"
19641964
},
19651965
"heading": {
1966-
"match": "(?:^|\\G)[ ]{0,3}((#{1,6})\\s+(?=[\\S[^#]]).*?\\s*(#{1,6})?)$\\n?",
1966+
"match": "(?:^|\\G)[ ]{0,3}(#{1,6}\\s+(.*?)(\\s+#{1,6})?\\s*)$",
19671967
"captures": {
19681968
"1": {
19691969
"patterns": [
19701970
{
1971-
"match": "(#{6})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
1971+
"match": "(#{6})\\s+(.*?)(?:\\s+(#+))?\\s*$",
19721972
"name": "heading.6.markdown",
19731973
"captures": {
19741974
"1": {
@@ -1983,7 +1983,7 @@
19831983
}
19841984
},
19851985
{
1986-
"match": "(#{5})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
1986+
"match": "(#{5})\\s+(.*?)(?:\\s+(#+))?\\s*$",
19871987
"name": "heading.5.markdown",
19881988
"captures": {
19891989
"1": {
@@ -1998,7 +1998,7 @@
19981998
}
19991999
},
20002000
{
2001-
"match": "(#{4})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
2001+
"match": "(#{4})\\s+(.*?)(?:\\s+(#+))?\\s*$",
20022002
"name": "heading.4.markdown",
20032003
"captures": {
20042004
"1": {
@@ -2013,7 +2013,7 @@
20132013
}
20142014
},
20152015
{
2016-
"match": "(#{3})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
2016+
"match": "(#{3})\\s+(.*?)(?:\\s+(#+))?\\s*$",
20172017
"name": "heading.3.markdown",
20182018
"captures": {
20192019
"1": {
@@ -2028,7 +2028,7 @@
20282028
}
20292029
},
20302030
{
2031-
"match": "(#{2})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
2031+
"match": "(#{2})\\s+(.*?)(?:\\s+(#+))?\\s*$",
20322032
"name": "heading.2.markdown",
20332033
"captures": {
20342034
"1": {
@@ -2043,7 +2043,7 @@
20432043
}
20442044
},
20452045
{
2046-
"match": "(#{1})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
2046+
"match": "(#{1})\\s+(.*?)(?:\\s+(#+))?\\s*$",
20472047
"name": "heading.1.markdown",
20482048
"captures": {
20492049
"1": {

0 commit comments

Comments
 (0)