Skip to content
Esc
navigateopen⌘Jpreview
On this page

markdown-heading-fragment-missing

Reports a checked Markdown fragment that does not match a GitHub heading slug.

← All Rules

What it does

Reports a same-document or cross-document fragment when the target Markdown document has no matching GitHub heading slug. Matching is exact after strict percent decoding.

Why it matters

The path may exist while the fragment still sends readers to no heading.

Examples

Non-passing

[Second repeat](topics.md#repeat-2)
## Repeat

## Repeat

Passing

[Second repeat](topics.md#repeat-1)
## Repeat

## Repeat

When it applies

This Rule belongs to the configurable markdown-destinations group. Presswork checks fragments for Markdown files and Recognized Documents, including numeric suffixes on duplicate headings.

References

See Presswork Configuration for Markdown semantics and src/lib/markdown-targets.ts for GitHub heading-slug collection.