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

This commit is contained in:
Christopher Hase 2025-03-27 15:36:50 +01:00
parent a69ae5520f
commit 8bd882760e

View file

@ -132,7 +132,11 @@ function render(node: Node): string {
case "Root": case "Root":
return render(node.child!); return render(node.child!);
case "Hexagram": case "Hexagram":
outputHTML = "<p><i>" + node.value + "</i></p>"; //outputHTML = "<p><i>" + node.value + "</i></p>";
node.value = node.value?.replace("</h1>", "</h1><i>"); //TODO: OK??
outputHTML = "<p>" + node.value + "</i></p>"; //TODO: OK??
outputHTML = outputHTML + render(node.child!); outputHTML = outputHTML + render(node.child!);
return outputHTML; return outputHTML;