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

This commit is contained in:
Christopher Hase 2025-03-28 11:31:01 +01:00
parent dda9fe4920
commit 7caabb4b8a

View file

@ -136,7 +136,9 @@ function render(node: Node): string {
return outputHTML; return outputHTML;
case "ChangingLines" : case "ChangingLines" :
outputHTML = "<p style=\"color: gray;\"><div style=\"border: 1px solid gray; border-radius: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: auto; display: inline-block; text-align: center; box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);\">" + node.value + "</div></p>"; const regex = new RegExp("~", "g");
node.value = node.value?.replace(regex, "");
outputHTML = "<p style=\"color: gray;\"><div style=\"border: 1px dashed gray; border-radius: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; width: auto; display: inline-block; text-align: center; box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);\">" + node.value + "</div></p>";
outputHTML = outputHTML + render(node.child!); outputHTML = outputHTML + render(node.child!);
return outputHTML; return outputHTML;