Custom rehype plugin that mirrors rehype-slug but pre-prefixes every generated heading ID with HEADING_ID_PREFIX.
Uses the same github-slugger library that rehype-slug uses, so the Reader Intelligence Guide anchors built by aggregator/reader-guide.ts#anchorForTitle (also via github-slugger
the same prefix) are guaranteed to match across punctuation, Unicode and duplicate-heading suffixes.
Custom rehype plugin that mirrors
rehype-slugbut pre-prefixes every generated heading ID with HEADING_ID_PREFIX.Uses the same
github-sluggerlibrary thatrehype-sluguses, so the Reader Intelligence Guide anchors built byaggregator/reader-guide.ts#anchorForTitle(also viagithub-slugger