create html part 14
All checks were successful
ci / build (push) Successful in 1m6s

This commit is contained in:
Christopher Hase 2025-03-27 14:42:28 +01:00
parent 1d0955c17d
commit 6aee5d6b9e

View file

@ -106,14 +106,18 @@ function parse(input: string): Node {
currentNode = images;
currentNode.value = "<h2>" + line + "</h2>"; //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 + "<br>"; //TODO: formattierung
}
else {
currentNode.value?.concat(line + "<br>");
//currentNode.value?.concat(line + "<br>");
currentNode.value = currentNode.value + line + "<br>";
console.log("currentNode.value: " + currentNode.value);
}
}