https://github.com/lpil/frontmatter
Extract frontmatter from text documents!
https://github.com/lpil/frontmatter
Last synced: about 1 year ago
JSON representation
Extract frontmatter from text documents!
- Host: GitHub
- URL: https://github.com/lpil/frontmatter
- Owner: lpil
- Created: 2025-03-25T18:18:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-04T16:09:55.000Z (about 1 year ago)
- Last Synced: 2025-05-07T09:57:54.094Z (about 1 year ago)
- Language: Gleam
- Size: 2.93 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# frontmatter
Extract frontmatter from text documents!
[](https://hex.pm/packages/frontmatter)
[](https://hexdocs.pm/frontmatter/)
```sh
gleam add frontmatter@1
```
Extract frontmatter from a text document. That is, some content a the very
start of the document that begins and ends with a `---` line.
Here's an example showing what a document with frontmatter could look like.
```markdown
---
# Here is some frontmatter.
# It can contain any format, but in this example TOML is used.
title = "My document"
---
# Hello!
Here is the rest of the document. It can also use any format, but in this
example _markdown_ is used.
```
Both UNIX and Windows style line endings are supported.
Further documentation can be found at .