Files
Situation-Awareness-Platfor…/src/utils/modules.d.ts
2025-03-12 18:41:20 +08:00

27 lines
978 B
TypeScript

// markdown插件类型plantuml
declare module 'markdown-it-plantuml' {
import { PluginWithOptions } from 'markdown-it';
import { RenderRule } from 'markdown-it/lib/renderer';
declare namespace Plantuml {
interface Options {
closeMarker?: string;
diagramName?: string;
generateSource?: (umlCode: string, pluginOptions: Options) => string;
imageFormat?: string;
openMarker?: string;
render?: RenderRule;
server?: string;
}
}
declare const markdownItPlantuml: PluginWithOptions<Plantuml.Options>;
export = markdownItPlantuml;
}
// markdown插件类型katex
declare module '@iktakahiro/markdown-it-katex' {
import { KatexOptions } from 'katex';
import { PluginWithOptions } from 'markdown-it';
type Options = Pick<KatexOptions, 'errorColor' | 'throwOnError'>;
declare const mathPlugin: PluginWithOptions<Options>;
export = mathPlugin;
}