You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
---title: Vision---# SHIFTY - Vision
becomes
However, we should just see the headline and not title: Vision.
Steps to reproduce the bug
Create a readme with YAML frontmatter (like above)
Build the docs
See the frontmatter contents in the generated docs
Environment
Typedoc version: 0.24.8
TypeScript version: 5.0.0
Node.js version: 18.17.1
OS: Windows & macOS
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:
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 stripYamlFrontmatter option is probably fine...
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: