1
Fork 0
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:
RGBCube 2025-06-11 20:12:29 +03:00
parent 9f92495826
commit 944cebf51a
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -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>`,