-
-
Notifications
You must be signed in to change notification settings - Fork 750
Description
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:
---
title: Vision
---
# SHIFTY - Vision
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?
lukas-runge
Metadata
Metadata
Assignees
Labels
No labels
