remark-astro-headings
Version:
A plugin for extracting headings out of MDX files and adding them to the frontmatter.
12 lines (11 loc) • 353 B
TypeScript
import type { Root } from 'mdast';
import { Transformer } from 'unified';
type AstroHeadingsConfig = {
minDepth?: number;
maxDepth?: number;
createSlugger?: () => {
slug: (content: string) => string;
};
};
declare function remarkAstroHeadings(config?: AstroHeadingsConfig): Transformer<Root>;
export default remarkAstroHeadings;