Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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