|
4 | 4 | "If you want to provide a fix or improvement, please create a pull request against the original repository.", |
5 | 5 | "Once accepted there, we are happy to receive an update request." |
6 | 6 | ], |
7 | | - "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/a7e4475626a505472c76d18e0a1b3cfcf46f9cf9", |
| 7 | + "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/4be9cb335581f3559166c319607dac9100103083", |
8 | 8 | "name": "Markdown", |
9 | 9 | "scopeName": "text.html.markdown", |
10 | 10 | "patterns": [ |
|
1963 | 1963 | "name": "markup.fenced_code.block.markdown" |
1964 | 1964 | }, |
1965 | 1965 | "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*)$", |
1967 | 1967 | "captures": { |
1968 | 1968 | "1": { |
1969 | 1969 | "patterns": [ |
1970 | 1970 | { |
1971 | | - "match": "(#{6})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", |
| 1971 | + "match": "(#{6})\\s+(.*?)(?:\\s+(#+))?\\s*$", |
1972 | 1972 | "name": "heading.6.markdown", |
1973 | 1973 | "captures": { |
1974 | 1974 | "1": { |
|
1983 | 1983 | } |
1984 | 1984 | }, |
1985 | 1985 | { |
1986 | | - "match": "(#{5})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", |
| 1986 | + "match": "(#{5})\\s+(.*?)(?:\\s+(#+))?\\s*$", |
1987 | 1987 | "name": "heading.5.markdown", |
1988 | 1988 | "captures": { |
1989 | 1989 | "1": { |
|
1998 | 1998 | } |
1999 | 1999 | }, |
2000 | 2000 | { |
2001 | | - "match": "(#{4})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", |
| 2001 | + "match": "(#{4})\\s+(.*?)(?:\\s+(#+))?\\s*$", |
2002 | 2002 | "name": "heading.4.markdown", |
2003 | 2003 | "captures": { |
2004 | 2004 | "1": { |
|
2013 | 2013 | } |
2014 | 2014 | }, |
2015 | 2015 | { |
2016 | | - "match": "(#{3})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", |
| 2016 | + "match": "(#{3})\\s+(.*?)(?:\\s+(#+))?\\s*$", |
2017 | 2017 | "name": "heading.3.markdown", |
2018 | 2018 | "captures": { |
2019 | 2019 | "1": { |
|
2028 | 2028 | } |
2029 | 2029 | }, |
2030 | 2030 | { |
2031 | | - "match": "(#{2})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", |
| 2031 | + "match": "(#{2})\\s+(.*?)(?:\\s+(#+))?\\s*$", |
2032 | 2032 | "name": "heading.2.markdown", |
2033 | 2033 | "captures": { |
2034 | 2034 | "1": { |
|
2043 | 2043 | } |
2044 | 2044 | }, |
2045 | 2045 | { |
2046 | | - "match": "(#{1})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", |
| 2046 | + "match": "(#{1})\\s+(.*?)(?:\\s+(#+))?\\s*$", |
2047 | 2047 | "name": "heading.1.markdown", |
2048 | 2048 | "captures": { |
2049 | 2049 | "1": { |
|
0 commit comments