Skip to content

A plugin for extracting headings out of MDX files and adding them to the frontmatter.

Notifications You must be signed in to change notification settings

Hugos68/remark-astro-headings

Repository files navigation

remark-astro-headings

A plugin for extracting headings out of MDX files and adding them to the frontmatter.

Install

pnpm add remark-astro-headings

Usage

import { remarkAstroHeadings } from 'remarkAstroHeadings';

export default defineConfig({
    integrations: [
        mdx({
            remarkPlugins: [remarkAstroHeadings],
        }),
    ],
});

About

A plugin for extracting headings out of MDX files and adding them to the frontmatter.

Resources

Stars

Watchers

Forks

Packages

No packages published