搜索结果列表页面开发

This commit is contained in:
付民康
2025-03-12 18:41:20 +08:00
commit 7cebe8fc00
739 changed files with 88149 additions and 0 deletions

26
src/utils/modules.d.ts vendored Normal file
View File

@@ -0,0 +1,26 @@
// 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;
}