mirror of
https://github.com/RGBCube/Site
synced 2025-07-29 12:07:47 +00:00
site: remove debug logs
This commit is contained in:
parent
9f92495826
commit
944cebf51a
1 changed files with 0 additions and 4 deletions
4
site.ts
4
site.ts
|
@ -183,14 +183,10 @@ site.process([".html"], (pages) =>
|
|||
document.querySelectorAll("pre code").forEach((code) => {
|
||||
const matches = code.innerHTML.match(/\{\[\([^\)]+\)\]\}/g);
|
||||
if (!matches) return;
|
||||
console.log(matches);
|
||||
|
||||
let newHTML = code.innerHTML;
|
||||
|
||||
matches.forEach((match) => {
|
||||
console.log(
|
||||
`<span class="callout">${match.replaceAll(/[^\d]/g, "")}</span>`,
|
||||
);
|
||||
newHTML = newHTML.replace(
|
||||
match,
|
||||
`<span class="callout">${match.replaceAll(/[^\d]/g, "")}</span>`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue