-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Support frontmatter #7938
Comments
For Astro, it's been added in #6896 |
Yeah I'm talking about markdown support for it |
+1 with a note: please support both YAML (---) and TOML (+++) frontmatter |
Thanks for the heads up @andreacfromtheapp I've updated PR #21503 to correctly support this. |
notpeter
added a commit
that referenced
this issue
Dec 6, 2024
Closes #7938. Adds front-matter injections for TOML/YAML in markdown. - See: https://github.com/tree-sitter-grammars/tree-sitter-markdown/blob/split_parser/tree-sitter-markdown/queries/injections.scm. Co-authored-by: Peter Tripp <peter@zed.dev>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check for existing issues
Describe the feature
Frontmatter is a section at the beginning of a file that contains metadata about the file or the document. It's often used in static site generators such as Astro. The information is written in YAML, JSON, or TOML format and is enclosed between a set of triple-dashed lines (
---
or+++
). The metadata within can include properties such as title, date, layout, categories, etc.In this example, "title" and "date" are metadata fields contained within the frontmatter. The information in the frontmatter can be used to generate webpages, sort posts, create navigations, among other uses.
Static site generators which use frontmatter in Markdown files:
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: