-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
Description
Hi. It's nice to see a frontmatter library written in python. Thanks for writing it!
How do you feel about supporting a way to load & parse multiple posts in one go, or perhaps even in a streaming fashion via an iterator or coroutine?
As motivation, consider a single markdown file that you would like to transform into a sequence of <section> tags to insert into reveal.js, and you want your transformation pipeline to transform metadata attributes into html data attributes for things like custom slide transitions:
# python-frontmatter
an introduction
---
transition: zoom
---
load and parse files (or just text) with YAML front matter.
---
transition: concave
background: linear-gradient(45deg, #f06, yellow)
---
now with streams of documents!I built a little standalone parser for this on my own, but I thought it might be nice if this cool library did it.
notslang