Skip to content

🐛 Ensure that different formats with the same start fence are treated as distinct formats#892

Merged
joshjennings98 merged 3 commits into
masterfrom
multiple-frontmatter
Jun 2, 2026
Merged

🐛 Ensure that different formats with the same start fence are treated as distinct formats#892
joshjennings98 merged 3 commits into
masterfrom
multiple-frontmatter

Conversation

@joshjennings98
Copy link
Copy Markdown
Contributor

Description

Ensure that different formats with the same start fence are treated as distinct formats

the old parser would:

  1. see ---
  2. pick the first --- format
  3. look only for closing ---
  4. hit EOF / fail
  5. report not found if it had a different end

This will still fallback to one the first parser (like it did before) if you have formats that aren't compatible e.g.:

Start: "---", End: "---", include delimiters false
Start: "---", End: "---", include delimiters true

Test Coverage

  • This change is covered by existing or additional automated tests.
  • Manual testing has been performed (and evidence provided) as automated testing was not feasible.
  • Additional tests are not required for this change (e.g. documentation update).

Comment thread changes/20260602103158.bugfix Outdated
@joshjennings98 joshjennings98 merged commit 6d3a832 into master Jun 2, 2026
7 checks passed
@joshjennings98 joshjennings98 deleted the multiple-frontmatter branch June 2, 2026 15:24
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

Successfully merging this pull request may close these issues.

2 participants