Skip to content

Match closing hashes in heading anchors - #274

Merged
chailandau merged 1 commit into
mainfrom
chai/match-closing-heading-hashes
Aug 21, 2026
Merged

Match closing hashes in heading anchors#274
chailandau merged 1 commit into
mainfrom
chai/match-closing-heading-hashes

Conversation

@chailandau

Copy link
Copy Markdown
Collaborator

Why

Check source references can anchor to a node heading, but valid Markdown headings with optional closing hashes do not match. Ghost then warns and embeds the whole node instead of the requested section.

What

  • Normalize optional closing hashes when matching heading anchors
  • Preserve hashes that are part of heading text
  • Add a patch changeset for the public package

Risk Assessment

Low. This only broadens heading-anchor matching to valid ATX heading syntax.

Generated with Goose

@chailandau
chailandau marked this pull request as ready for review August 21, 2026 21:27
@chailandau
chailandau merged commit 96bf063 into main Aug 21, 2026
4 checks passed
@chailandau
chailandau deleted the chai/match-closing-heading-hashes branch August 21, 2026 21:47
@github-actions github-actions Bot mentioned this pull request Aug 21, 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