Skip to content

SeparetorError fix messes up frontmatter #87

@twanh

Description

@twanh

When there is frontmatter the --- is seen as a separator and a new blank line is added after the ---.

E.g.:

---
title: Test test
---

get changed to:

---

title: Test test
---

In frontmatter this should not happen since it makes the frontmatter invalid.

A possible solution is to check if the --- separator is on the first line of the file and in that case skip it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersmode:checkIssued related to check mode

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions