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

This commit is contained in:
Christopher Hase 2025-03-28 10:55:22 +01:00
parent 8c08641417
commit d54cd25dc2

View file

@ -128,7 +128,7 @@ function render(node: Node): string {
return render(node.child!);
case "Hexagram":
//node.value = node.value?.replace("</h1>", "</h1><div style=\"border: 1px solid gray; border-radius: 15px; padding: 15px; width: 400px; text-align: center; box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);\"><h2>");
node.value = node.value?.replace("</h1>", "</h1><div style=\"border: 1px solid gray; border-radius: 15px; padding: 15px; width: auto; display: inline-block; text-align: center; box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);\"><h2>");
node.value = node.value?.replace("</h1>", "</h1><div style=\"border: 1px solid gray; border-radius: 25px; padding: 30px; width: auto; display: inline-block; text-align: center; box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);\"><h2>");
node.value = node.value?.replace("<br>", " - ");
outputHTML = "<p>" + node.value + "</h2></div></p>";
outputHTML = outputHTML + render(node.child!);