0.8.2 โข Published 1 year ago
@islands/headings v0.8.2
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',
],
})