From 6aee5d6b9e67e204ea695f81c1c4598e78b75a33 Mon Sep 17 00:00:00 2001 From: Christopher Hase Date: Thu, 27 Mar 2025 14:42:28 +0100 Subject: [PATCH] create html part 14 --- broker.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/broker.ts b/broker.ts index 05e69d8..2b63f2f 100644 --- a/broker.ts +++ b/broker.ts @@ -106,14 +106,18 @@ function parse(input: string): Node { currentNode = images; currentNode.value = "

" + line + "

"; //TODO: formattierung } - if (line.startsWith("changingLines") && currentNode.type != "ChangingLines") { + //if (line.startsWith("changingLines") && currentNode.type != "ChangingLines") { + if (line.startsWith("~") && currentNode.type != "ChangingLines") { const changingLines: Node = { type: "ChangingLines"}; currentNode.child = changingLines; currentNode = changingLines; currentNode.value = line + "
"; //TODO: formattierung } else { - currentNode.value?.concat(line + "
"); + //currentNode.value?.concat(line + "
"); + currentNode.value = currentNode.value + line + "
"; + + console.log("currentNode.value: " + currentNode.value); } }