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); } }