create html part 14
This commit is contained in:
parent
1d0955c17d
commit
6aee5d6b9e
1 changed files with 6 additions and 2 deletions
|
@ -106,14 +106,18 @@ function parse(input: string): Node {
|
||||||
currentNode = images;
|
currentNode = images;
|
||||||
currentNode.value = "<h2>" + line + "</h2>"; //TODO: formattierung
|
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"};
|
const changingLines: Node = { type: "ChangingLines"};
|
||||||
currentNode.child = changingLines;
|
currentNode.child = changingLines;
|
||||||
currentNode = changingLines;
|
currentNode = changingLines;
|
||||||
currentNode.value = line + "<br>"; //TODO: formattierung
|
currentNode.value = line + "<br>"; //TODO: formattierung
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
currentNode.value?.concat(line + "<br>");
|
//currentNode.value?.concat(line + "<br>");
|
||||||
|
currentNode.value = currentNode.value + line + "<br>";
|
||||||
|
|
||||||
|
console.log("currentNode.value: " + currentNode.value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue