Skip to content

Stop heading blocks at next heading or ---#3

Open
karsten-bot wants to merge 5 commits intoTimoBechtel:mainfrom
karsten-bot:tim-17-separator-boundaries
Open

Stop heading blocks at next heading or ---#3
karsten-bot wants to merge 5 commits intoTimoBechtel:mainfrom
karsten-bot:tim-17-separator-boundaries

Conversation

@karsten-bot
Copy link
Copy Markdown
Contributor

@karsten-bot karsten-bot commented Feb 28, 2026

What

  • Keep the existing heading block behavior (subheadings included; stop at next heading of same or higher level).
  • Add one extra hard boundary: stop a heading block at a standalone separator line --- (whitespace allowed). The separator line itself is not included.

Tests

  • pkgx bun test

Fixtures

  • Moved the separator test case into test/example-note.md (appended section) and extended test/example-note-metadata.json.

@TimoBechtel TimoBechtel changed the title TIM-17: Stop heading blocks at next heading or --- Stop heading blocks at next heading or --- Mar 22, 2026
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.

1 participant