Repository navigation
Releases
Releases · reicheltmediadesign/wordpress-rmd-heading-anchors
v0.2.0 – Fixed heading anchors in the block editor
New
- Anchor panel for headings in the block editor. Select a heading and the block settings show its automatic anchor.
- Fix automatic anchor stores the current anchor with the heading, so it stays the same when the heading text changes and existing links keep working.
- Fixed anchor takes an anchor of your own (spaces and
#become hyphens). - Use automatic anchor removes the fixed anchor again.
- A warning appears when two headings in a post use the same anchor.
- Fixed anchors are stored in the block's HTML anchor attribute, i.e. as the heading's
idin the content, so they also stay when the plugin is deactivated. - The automatic anchors shown in the editor are computed by the site itself with the same code as on the front end (REST route
rmd-heading-anchors/v1/anchors, users who can edit posts).
Upgrading
Nothing to do. Existing automatic anchors stay as they are.
v0.1.0 – Automatic anchor IDs for headings
First release of RMD Heading Anchors: every heading in the content gets an automatic anchor ID, so sections can be linked directly.
Features
- Readable anchors –
Häufige Fragen zur Anfahrtbecomes#haeufige-fragen-anfahrt: lowercase, umlauts spelled out (ä→ae,ß→ss), other accents removed, special characters and spaces turned into single hyphens, at most 60 characters. - Filler words left out – German and English articles, conjunctions and common prepositions; add your own under Settings → Heading anchors.
- Own anchors win – headings with an ID (e.g. the HTML anchor field in the block editor) keep it.
- Unique and stable – repeated headings get
-2,-3, …; the same content always gives the same IDs. - Nothing stored in the content – IDs are added on output only; deactivating the plugin removes them.
- Settings – heading levels (H2–H6 by default), filler words, examples with the current settings.
- Updates from GitHub releases. German translation included.