@islands/headings
v0.10.0-beta.1
Published
<p align="center"> <a href="https://iles-docs.netlify.app"> <img src="https://github.com/ElMassimo/iles/blob/main/docs/images/banner.png"/> </a> </p>
Downloads
374
Readme
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
📖 sets
meta.headings
to enable rendering sidebars and table of contents
Usage 🚀
// iles.config.ts
import { defineConfig } from 'iles'
export default defineConfig({
modules: [
'@islands/headings',
],
})