Skip to content

Document with literal --- or single horizontal rule at top is mangled #189

@gregdan3

Description

@gregdan3

Bug

If a document with --- at the top is provided, an extra --- will be written to the document because the leading --- is detected as a frontmatter.

Reproducer

---

Example!

Expected Result

---

Example!

Actual Result

---
Example!
---

Trailing newlines intended; see #180

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions