rehype-attr2
Version:
New syntax to add attributes to Markdown.
12 lines (11 loc) • 343 B
TypeScript
import type { Root } from 'hast';
import type { Plugin } from 'unified';
type TagName = keyof HTMLElementTagNameMap;
export type RehypeIdOptions = {
targetElements?: TagName[];
prefix?: string;
type?: 'increment' | 'content';
initialValue?: number;
};
export declare const rehypeId: Plugin<[RehypeIdOptions], Root>;
export {};