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

Correctly detect frontmatter to avoid mangling document (fixes #180, fixes #189) #190

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 17, 2023

  1. fix: Correctly detect frontmatter to avoid mangling document

    The previous format would incorrectly capture:
    - A single horizontal rule at the top of the file
    - Three literal dashes with arbitrary content after them.
    This was detected as a frontmatter, and an extra HR would be inserted after as a result.
    
    The new format requires that there are two sets of triple dashes on their own lines, where the first is the first text in the document.
    gregdan3 committed Sep 17, 2023
    Configuration menu
    Copy the full SHA
    0e290ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76a76dc View commit details
    Browse the repository at this point in the history