Remove console.log from codeblock component
This commit is contained in:
parent
f7f8b9a50b
commit
52ec210fc6
1 changed files with 0 additions and 1 deletions
|
@ -14,7 +14,6 @@ class CodeBlock extends HTMLElement {
|
||||||
.replace(/^\s*\n/, "")
|
.replace(/^\s*\n/, "")
|
||||||
.replace(/\n\s*$/, "")
|
.replace(/\n\s*$/, "")
|
||||||
let prefix = new RegExp(`(?<![^\n])${content.match(/^\t*/)}`, "g")
|
let prefix = new RegExp(`(?<![^\n])${content.match(/^\t*/)}`, "g")
|
||||||
console.log(prefix)
|
|
||||||
content = content
|
content = content
|
||||||
.replace(prefix, "")
|
.replace(prefix, "")
|
||||||
.replace(/&[a-z]+;/g, str => escapes[str] ?? str)
|
.replace(/&[a-z]+;/g, str => escapes[str] ?? str)
|
||||||
|
|
Loading…
Reference in a new issue