提交 265c025b 编写于 作者: M Matt Bierner 提交者: Kai Maetzel

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)
上级 102adb76
......@@ -309,7 +309,7 @@
</dict>
</array>
<key>while</key>
<string>\G(?!&lt;/\2\s*&gt;)</string>
<string>^(?!\s*$)</string>
</dict>
</array>
</dict>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册