@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
20 lines (19 loc) • 827 B
TypeScript
import type { Pluggable } from 'unified';
export declare const contentCache: Map<string, string>;
export declare const addToCache: (key: string, value: string) => void;
export declare const createPlugins: (props: {
allowHtml?: boolean;
enableCustomFootnotes?: boolean;
enableLatex?: boolean;
isChatMode: boolean;
rehypePlugins?: Pluggable | Pluggable[];
remarkPlugins?: Pluggable | Pluggable[];
remarkPluginsAhead?: Pluggable | Pluggable[];
}) => {
rehypePluginsList: Pluggable[];
remarkPluginsList: Pluggable[];
};
export declare function escapeBrackets(text: string): string;
export declare function escapeMhchem(text: string): string;
export declare function fixMarkdownBold(text: string): string;
export declare const transformCitations: (rawContent: string, length?: number) => string;