Remove console.log from codeblock component

This commit is contained in:
Talia 2022-06-09 13:47:31 +02:00
parent f7f8b9a50b
commit 52ec210fc6

View file

@ -14,7 +14,6 @@ class CodeBlock extends HTMLElement {
.replace(/^\s*\n/, "")
.replace(/\n\s*$/, "")
let prefix = new RegExp(`(?<![^\n])${content.match(/^\t*/)}`, "g")
console.log(prefix)
content = content
.replace(prefix, "")
.replace(/&[a-z]+;/g, str => escapes[str] ?? str)