wangeditor-plugin-formula-plus
Version:
17 lines (16 loc) • 536 B
TypeScript
/**
* @description 工具函数
* @author wangfupeng
*/
import { KatexOptions } from 'katex';
/**
* 获取随机数字符串
* @param prefix 前缀
* @returns 随机数字符串
*/
export declare function genRandomStr(prefix?: string): string;
export declare const katexRender: (str: string, elem: HTMLElement, options?: KatexOptions) => void;
export declare const formulaRender: (value: string, el: HTMLElement, options: {
katexOptions?: KatexOptions;
katexRender?: (value: string, el: HTMLElement) => void;
}) => void;