mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Add yaml front matter support for Markdown (#15218)
* Add language support for yaml front matter to markdown grammar * Add option to strip yaml front matter from preview * Use enum for setting instead of boolean * Better names * Fix merge error
This commit is contained in:
@@ -15,6 +15,10 @@
|
||||
<string>Markdown</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#frontMatter</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#block</string>
|
||||
@@ -1880,6 +1884,20 @@
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>frontMatter</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\A-{3}\s*$</string>
|
||||
<key>while</key>
|
||||
<string>^(?!-{3}\s*$)</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>source.yaml</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>scopeName</key>
|
||||
<string>text.html.markdown</string>
|
||||
|
||||
Reference in New Issue
Block a user