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

36 lines
838 B
TypeScript

import { Plugin } from 'vuepress/core';
import { MarkdownItIncludeOptions } from '@mdit/plugin-include';
/**
* Options for @vuepress/plugin-markdown-include
*
* @vuepress/plugin-markdown-include 插件的选项
*/
type MarkdownIncludePluginOptions = Omit<MarkdownItIncludeOptions, 'currentPath'>;
/**
* Markdown include plugin
*
* Markdown 导入插件
*
* @param options - Plugin options / 插件选项
*
* @example
* ```ts
* import { markdownIncludePlugin } from '@vuepress/plugin-markdown-include'
*
* export default {
* plugins: [
* markdownIncludePlugin({
* deep: true,
* useComment: true,
* }),
* ],
* }
* ```
*/
declare const markdownIncludePlugin: (options: MarkdownIncludePluginOptions) => Plugin;
export { markdownIncludePlugin };
export type { MarkdownIncludePluginOptions };