-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
add support to front-matter #2347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -149,6 +149,7 @@ class Markdown { | |
| }) | ||
| this.md.use(require('markdown-it-kbd')) | ||
| this.md.use(require('markdown-it-admonition')) | ||
| this.md.use(require('markdown-it-front-matter'), fm => {}) | ||
|
||
|
|
||
| const deflate = require('markdown-it-plantuml/lib/deflate') | ||
| this.md.use(require('markdown-it-plantuml'), '', { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This regex will also valid for line that started with 4 dashes. You should remove the
,there.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right.
I've checked
markdown-it-front-matterand at first there isIndicated by three or more dashes: ---It was what I tough but I've check some libraries and all of them use a must be
---.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should stick to the traditional
---😄