From f86e058e9b4a67f87fc018e336635f64e29f6c6c Mon Sep 17 00:00:00 2001 From: Alejandra Date: Fri, 16 Jan 2026 12:12:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20copy=20button=20in=20custo?= =?UTF-8?q?m.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/js/custom.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/js/custom.js b/docs/js/custom.js index ef64c612a9..82c1d45570 100644 --- a/docs/js/custom.js +++ b/docs/js/custom.js @@ -81,8 +81,11 @@ function setupTermynal() { } } saveBuffer(); + const inputCommands = useLines.filter(line => line.type === "input").map(line => line.value).join("\n"); + node.textContent = inputCommands; const div = document.createElement("div"); - node.replaceWith(div); + node.style.display = "none"; + node.after(div); const termynal = new Termynal(div, { lineData: useLines, noInit: true,