diff --git a/src/utils/dom.ts b/src/utils/dom.ts index 7a18871a..af696535 100644 --- a/src/utils/dom.ts +++ b/src/utils/dom.ts @@ -81,6 +81,7 @@ export const formatText = (text: string): string => .replace(/>/g, '>') .replace(/:\/\//gim, ':|--|') .replace(/(\/\/[^\n]+)/gim, '$1') + .replace(/(\/\*[\s\S]*?\*\/)/gim, '$1') .replace(/:\|--\|/gim, '://') .split('\n') .map(el => `
${el}
`)