提交 5d8a9c6b 编写于 作者: M Matt Bierner 提交者: GitHub

Fix Markdown Colorization of Indented Block Quotes (#15220)

Issue #12948

**Bug**
- Block quotes ar not colorized if they start with a space. Up to three spaces should be supported (4 spaces makes it a code block)
- The second line of blocks quotes should be able to have any number of leading spaces.

**Fix**
Add support for both of these cases

Closes #12948
上级 c7f07d24
......@@ -216,7 +216,7 @@
<key>blockquote</key>
<dict>
<key>begin</key>
<string>(^|\G)(&gt;) ?</string>
<string>(^|\G)[ ]{0,3}(&gt;) ?</string>
<key>captures</key>
<dict>
<key>2</key>
......@@ -235,7 +235,7 @@
</dict>
</array>
<key>while</key>
<string>(^|\G)(&gt;) ?</string>
<string>(^|\G)\s*(&gt;) ?</string>
</dict>
<key>heading</key>
<dict>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册