Skip to content
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

Closed
1 task done
jacobdalamb opened this issue Feb 17, 2024 · 4 comments · Fixed by #21503
Closed
1 task done

Support frontmatter #7938

jacobdalamb opened this issue Feb 17, 2024 · 4 comments · Fixed by #21503
Labels
feature [core label] language An umbrella label for all programming languages syntax behaviors markdown Markdown markup support

Comments

@jacobdalamb
Copy link

jacobdalamb commented Feb 17, 2024

Check for existing issues

  • Completed

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.

---
title: "My Blog Post"
date: 2021-01-31
---

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

@JosephTLyons JosephTLyons added markdown Markdown markup support language An umbrella label for all programming languages syntax behaviors and removed triage labels Feb 20, 2024
@alvgaona
Copy link
Contributor

For Astro, it's been added in #6896

@jacobdalamb
Copy link
Author

Yeah I'm talking about markdown support for it

@andreacfromtheapp
Copy link

+1 with a note: please support both YAML (---) and TOML (+++) frontmatter

@notpeter
Copy link
Member

notpeter commented Dec 6, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature [core label] language An umbrella label for all programming languages syntax behaviors markdown Markdown markup support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants