@islands/headings |
An îles module that injects a rehype plugin to parse headings in MDX documents:
-
🔗 adds an id to headings and injects an anchor tag to link them -
🏷 automatically extracts the title from an<h1>
and setsfrontmatter.title
-
📖 setsmeta.headings
to enable rendering sidebars and table of contents
🚀
Usage // iles.config.ts
import { defineConfig } from 'iles'
export default defineConfig({
modules: [
'@islands/headings',
],
})