@glodon-aiot/react-components
Version:
aiot react components
11 lines (10 loc) • 537 B
TypeScript
export declare function replaceLatexDelimiters(input: string): string;
/**
* 对输入字符串中的反斜杠进行转义处理。
* 在 Markdown 解析等场景中,反斜杠有特殊含义,
* 使用此函数可将反斜杠转义,使其作为普通文本显示。
* @param text - 待转义的输入字符串。
* @returns 转义后的字符串,特殊字符前会添加反斜杠。
*/
export declare function escapeSlash(text: string): string;
export declare function checkMediaType(url: string): "image" | "video" | null;