123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- import type MarkdownIt from 'markdown-it'
- import type { FilterPattern } from '@rollup/pluginutils'
- /**
- * key :componentName
- * value: root directory to the Component relative path
- */
- export interface WrapperComponentData { [name: string]: string }
- export type WrapperComponent = WrapperComponentData | boolean | string | string[] | null | undefined
- export interface Options {
- /**
- * Options passed to Markdown It
- */
- markdownItOptions?: MarkdownIt.Options
- /**
- * Plugins for Markdown It
- */
- markdownItUses?: (
- | MarkdownIt.PluginSimple
- | [MarkdownIt.PluginSimple | MarkdownIt.PluginWithOptions<any>, any]
- | any
- )[]
- /**
- * A function providing the Markdown It instance gets the ability to apply custom
- * settings/plugins
- */
- markdownItSetup?: (MarkdownIt: MarkdownIt) => void
- /**
- * Class names for wrapper div
- *
- * @default 'vite-plugin-react-markdown'
- */
- wrapperClasses?: string
- /**
- * Component name to wrapper with
- *
- * @default ViteReactMarkdown
- */
- wrapperComponentName?: string | null | undefined
- /**
- * Component Path to wrapper with
- * root directory to the Component relative path
- *
- * @default undefined
- */
- wrapperComponentPath?: string | null | undefined
- /**
- * used Component within .md file
- * @default undefined
- */
- wrapperComponent?: WrapperComponent
- include?: FilterPattern
- exclude?: FilterPattern
- }
- export interface ResolvedOptions extends Required<Options> {
- }
|