mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
Use blankline to delimit html block in markdown colorization
**Bug** Issue #7725 Nested html is not colorized properly for markdown: ```md <div class="custom-class" markdown="1"> <div> nested div </div> </div> ``` **Fix** According to the commonmark spec, general html blocks end with a blank line: http://spec.commonmark.org/0.25/#html-blocks This change relaxes the while so that we only check for blanklines, instead of trying to match the start tag (which fails when nesting elements)
This commit is contained in:
committed by
Kai Maetzel
parent
102adb766e
commit
265c025bbf
@@ -309,7 +309,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>while</key>
|
||||
<string>\G(?!</\2\s*>)</string>
|
||||
<string>^(?!\s*$)</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
Reference in New Issue
Block a user