UNPKG

docusaurus-numbered-headings

Version:

A Docusaurus plugin that automatically adds numbered headings with support for ISO 2145 and USA Classic numbering conventions

16 lines (15 loc) 533 B
import type { LoadContext, Plugin } from "@docusaurus/types"; export { remarkFrontmatterToggle } from "./remark-frontmatter-toggle"; export interface PluginOptions { /** * Whether to enable numbered headings * @default true */ enabled?: boolean; /** * Numbering convention to use * @default "iso-2145" */ convention?: "iso-2145" | "usa-classic" | "spanish-forense"; } export default function docusaurusNumberedHeadingsPlugin(context: LoadContext, options?: PluginOptions): Plugin<void>;