fuc-new/doc/node_modules/@mdit/plugin-footnote/lib/index.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

33 lines
733 B
TypeScript

import { PluginSimple } from 'markdown-it';
import Token from 'markdown-it/lib/token.mjs';
/**
* Forked from https://github.com/markdown-it/markdown-it-footnote/blob/master/index.mjs
*/
declare const footnote: PluginSimple;
interface FootNoteToken extends Token {
meta: {
id: number;
subId: number;
label: string;
};
}
interface FootNoteEnv extends Record<any, any> {
docId?: string;
footnotes: {
label?: string;
refs?: Record<string, number>;
list?: {
label?: string;
count?: number;
content?: string;
tokens?: Token[] | null;
}[];
};
}
export { footnote };
export type { FootNoteEnv, FootNoteToken };