@vitepress-demo-preview/plugin
Version:
preview component of code and component in vitepress
12 lines (8 loc) • 347 B
TypeScript
import MarkdownIt from 'markdown-it';
type Options = {
clientOnly: boolean;
alias: Record<string, string> | null;
};
declare const componentPreview: (md: MarkdownIt, options?: Partial<Options>) => void;
declare const containerPreview: (md: MarkdownIt, options?: Partial<Options>) => void;
export { componentPreview, containerPreview };