提交 9875ae10 编写于 作者: R Richard Min 提交者: Matt Bierner

Support `...` terminating Yaml FrontMatter (#23195)

* FrontMatter rendered properly on markdownEngine

* FrontMatter terminates for 3 - or .

* Regex applied on both files for markdown
上级 40c3d0a0
......@@ -22,7 +22,7 @@ interface MarkdownIt {
utils: any;
}
const FrontMatterRegex = /^---\s*[^]*?---\s*/;
const FrontMatterRegex = /^---\s*[^]*?(-{3}|\.{3})\s*/;
export class MarkdownEngine {
private md: MarkdownIt;
......
......@@ -3551,7 +3551,7 @@
<key>begin</key>
<string>\A-{3}\s*$</string>
<key>while</key>
<string>^(?!-{3}\s*$)</string>
<string>^(?!(-{3}|\.{3})\s*$)</string>
<key>patterns</key>
<array>
<dict>
......
......@@ -1184,7 +1184,7 @@
<key>begin</key>
<string>\A-{3}\s*$</string>
<key>while</key>
<string>^(?!-{3}\s*$)</string>
<string>^(?!(-{3}|\.{3})\s*$)</string>
<key>patterns</key>
<array>
<dict>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册