diff --git a/src/utils/enhance-content.js b/src/utils/enhance-content.js index 783bcff..4783f3c 100644 --- a/src/utils/enhance-content.js +++ b/src/utils/enhance-content.js @@ -20,7 +20,7 @@ function enhanceContent(content, opts = {}) { // Convert :shortcode: to let textNodes = extractTextNodes(dom); textNodes.forEach((node) => { - let html = node.nodeValue; + let html = node.nodeValue.replace(//g, '>'); if (emojis) { html = emojifyText(html, emojis); } @@ -34,7 +34,7 @@ function enhanceContent(content, opts = {}) { // Convert `code` to code textNodes = extractTextNodes(dom); textNodes.forEach((node) => { - let html = node.nodeValue; + let html = node.nodeValue.replace(//g, '>'); if (/`[^`]+`/g.test(html)) { html = html.replaceAll(/(`[^]+?`)/g, '$1'); }