- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 735
Bug: Frontmatter not removed in Markdown Readme #2381
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
Comments
frontmatter isn't standard markdown, it is rendered by both GitHub & npm, which TypeDoc generally tries to replicate. I don't want to imply that TypeDoc supports frontmatter until (if ever) it does, which I think doing this by default would imply. A |
Hi @Gerrit0, thanks for the reply! I agree with that, I'll make a pr adding the |
Thanks! |
Search terms
markdown, frontmatter, readme
Expected Behavior
The markdown parser in typedoc (for readmes) removes any yaml frontmatter as it is just metadata and should not be displayed to the end-user.
Actual Behavior
YAML frontmatter is converted to html and shown. Example:
becomes

However, we should just see the headline and not
title: Vision
.Steps to reproduce the bug
Environment
Additional Info
Happy to fix that in a PR. Should be as simple as removing frontmatter via regex before passing it to
marked
. Maybe this should be a new config option?The text was updated successfully, but these errors were encountered: