Skip to content

Add rule to flag id-for-anchoring placeholder#93

Merged
janine-c merged 1 commit into
mainfrom
janine/flag-id-for-anchoring-placeholder
May 19, 2026
Merged

Add rule to flag id-for-anchoring placeholder#93
janine-c merged 1 commit into
mainfrom
janine/flag-id-for-anchoring-placeholder

Conversation

@janine-c

Copy link
Copy Markdown
Contributor

Summary

Adds a Vale rule that flags the literal id-for-anchoring placeholder text. This placeholder comes from the collapse-content shortcode template and is meant to be replaced by writers with a unique, descriptive ID for the expander. When left in place, anchor links to the section don't work and multiple expanders on the same page collide on the same ID.

Recent instances of the placeholder slipping through to merged docs: documentation#36760 cleaned up 22 of them across 10 pages.

The rule uses the same existence pattern as merge_conflict.yml — a hard error level for a token that should never appear in published content.

Test plan

  • Run Vale locally against a doc file containing id="id-for-anchoring" and confirm the rule fires with the expected message.
  • Run Vale against a doc file without the placeholder and confirm the rule does not fire.

Flags the literal id-for-anchoring placeholder text from the
collapse-content shortcode template so writers replace it with a
unique, descriptive ID before merging.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@janine-c janine-c requested a review from a team as a code owner May 15, 2026 23:19

@joepeeples joepeeples left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@janine-c janine-c merged commit 587651a into main May 19, 2026
2 checks passed
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