diff --git a/src/components/Common/Editor/editorPlugins.tsx b/src/components/Common/Editor/editorPlugins.tsx index 911a6a9..7e26e9b 100644 --- a/src/components/Common/Editor/editorPlugins.tsx +++ b/src/components/Common/Editor/editorPlugins.tsx @@ -25,6 +25,7 @@ export const codeBlockLanguages = { export const ProcessCodeBlocks = (content: string): string => { if (!content) return ''; const codeBlockRegex = /```(?:(\w*)\n)?([\s\S]*?)```/g; + const htmlRegex = /(<[^>]+>)/gi; try { return content.replace(codeBlockRegex, (match, language, code) => {