diff --git a/src/modules/blocks/markdown/markdown.wrapper.ts b/src/modules/blocks/markdown/markdown.wrapper.ts index ec4512262..b3e4edcf8 100644 --- a/src/modules/blocks/markdown/markdown.wrapper.ts +++ b/src/modules/blocks/markdown/markdown.wrapper.ts @@ -9,7 +9,7 @@ export function wrapWithMarkdownSyntax(text: string, marker: '~~' | '**' | '==') // Trim the inner content and escape special characters const innerContent = text.trim(); const escapedContent = innerContent.replace(/([\\`*_\[\]{}()#+\-.!])/g, '\\$1'); -console.log({escapedContent,innerContent,text}); + // Wrap the inner content with the specified markers return `${startSpaces}${marker}${escapedContent}${marker}${endSpaces}`; } \ No newline at end of file