-
Notifications
You must be signed in to change notification settings - Fork 132
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
Create alternative syntax for frontmatter #2145
Conversation
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.
Thank you for the work @EltonGohJH - nice catching all the edge cases of the markdown parsing!
The ---
frontmatter works for me and is a nice feature addition 🎉
packages/core/src/lib/markdown-it/plugins/markdown-it-alt-frontmatter.js
Outdated
Show resolved
Hide resolved
packages/core/src/lib/markdown-it/plugins/markdown-it-alt-frontmatter.js
Outdated
Show resolved
Hide resolved
packages/core/src/lib/markdown-it/plugins/markdown-it-alt-frontmatter.js
Outdated
Show resolved
Hide resolved
packages/core/src/lib/markdown-it/plugins/markdown-it-alt-frontmatter.js
Outdated
Show resolved
Hide resolved
packages/core/src/lib/markdown-it/plugins/markdown-it-alt-frontmatter.js
Outdated
Show resolved
Hide resolved
packages/core/src/lib/markdown-it/plugins/markdown-it-alt-frontmatter.js
Outdated
Show resolved
Hide resolved
packages/core/src/lib/markdown-it/plugins/markdown-it-alt-frontmatter.js
Outdated
Show resolved
Hide resolved
packages/core/src/lib/markdown-it/plugins/markdown-it-alt-frontmatter.js
Outdated
Show resolved
Hide resolved
812375e
to
70c8eed
Compare
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.
Thanks for the changes @EltonGohJH - just one more nit
packages/core/src/lib/markdown-it/plugins/markdown-it-alt-frontmatter.js
Outdated
Show resolved
Hide resolved
40d1ac4
to
80c8f1d
Compare
packages/core/src/lib/markdown-it/plugins/markdown-it-alt-frontmatter.js
Outdated
Show resolved
Hide resolved
LGTM after:
|
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.
LGTM
What is the purpose of this pull request?
Overview of changes:
Resolves #1851
Anything you'd like to highlight/discuss:
As dicussed previously, I have added regex to check in between the new frontmatter index. Can someone do a sanity check that my markdown-it plugin is correct. If all is good, I will go create new test cases and add new docs.
I tested this with CS2103T website with 700 over pages and it took around the same time of 2mins 6 seconds. So, this test on my end concluded that performance is not visibly affected at all.
Proposed commit message: (wrap lines at 72 characters)
Checklist: ☑️