Mage / api /src /utils /StringParser.ts
Mythus's picture
Upload 233 files
f46e223
raw
history blame contribute delete
160 Bytes
export const markdownSafe = (str: string): string => str
.replaceAll('_', '\\_')
.replaceAll('*', '\\*')
.replaceAll('[', '\\[')
.replaceAll('`', '\\`')