Skip to content

refactor: use markdown title plugin and remove parseHeader utils #1235

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

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

meteorlxy
Copy link
Member

In this PR, the parseHeader / deeplyParseHeader utils are totally removed. We don't need to maintain the complex regexp-based parsing anymore.

Instead, we use markdown-it to resolve the title, or parse the frontmatter.title. It is safer and more accurate, and has better compatibility with other markdown-it plugins. For example, we don't need extra process for markdown-it-attrs as before.

@brc-dd brc-dd merged commit 19c0f43 into vuejs:main Aug 24, 2022
@meteorlxy meteorlxy deleted the md/title branch August 24, 2022 18:38
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants