Skip to content

Instantly share code, notes, and snippets.

@eyeseast
Created October 19, 2021 00:19
Show Gist options
  • Save eyeseast/28a2df48a67921bba660ef8396088d54 to your computer and use it in GitHub Desktop.
Save eyeseast/28a2df48a67921bba660ef8396088d54 to your computer and use it in GitHub Desktop.
import frontmatter
text = """
---
date: 2012-10-11T23:39:45-04:00
---
Content
"""
post = frontmatter.loads(text)
print(frontmatter.dumps(post))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment