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

Allow empty body ? #20

Open
bryan-brancotte opened this issue Sep 16, 2024 · 0 comments
Open

Allow empty body ? #20

bryan-brancotte opened this issue Sep 16, 2024 · 0 comments

Comments

@bryan-brancotte
Copy link

bryan-brancotte commented Sep 16, 2024

Hi,

More a discussion than a bug, I'm wondering why preventing to extract frontmatter attribut from md file without a body ?

I made a minimalist PR (1 char) to allow empty body in #19.

Reproduce issue:

import frontmatter

s="""
---
foo: bar
---
"""
assert frontmatter.Frontmatter.read(s) is not None, "shouldn't is be not None?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant