27 lines
978 B
TypeScript
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;
|
|
}
|