diff --git a/src/utils/enhance-content.js b/src/utils/enhance-content.js index 1a6d70ce..faea7cc1 100644 --- a/src/utils/enhance-content.js +++ b/src/utils/enhance-content.js @@ -120,7 +120,7 @@ function enhanceContent(content, opts = {}) { p.querySelectorAll('br').forEach((br) => br.replaceWith('\n')); }); const codeText = nextParagraphs.map((p) => p.innerHTML).join('\n\n'); - pre.innerHTML = `${codeText}`; + pre.innerHTML = `${codeText}`; block.replaceWith(pre); nextParagraphs.forEach((p) => p.remove()); }