This commit is contained in:
parent
080d7e84a7
commit
0fb9464998
1 changed files with 1 additions and 4 deletions
|
@ -197,9 +197,7 @@ function render(node: Node): string {
|
||||||
case "Root":
|
case "Root":
|
||||||
return render(node.child!);
|
return render(node.child!);
|
||||||
case "Hexagram":
|
case "Hexagram":
|
||||||
//NEW
|
node.value = node.value?.replace("<h1>", "<div style=\"border: 1px dotted gray; border-radius: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; padding-bottom: 10px; width: auto; display: inline-block; box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);\"><h1>");
|
||||||
node.value = node.value?.replace("<h1>", "<div style=\"border: 1px dotted gray; border-radius: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; padding-bottom: 10px; width: auto; display: inline-block; color: gray; text-align: center; box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);\"><h1>");
|
|
||||||
|
|
||||||
node.value = node.value?.replace("</h1>", "</h1><div style=\"border: 1px solid gray; border-radius: 25px; padding-left: 30px; padding-right: 30px; padding-top: 20px; 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-left: 30px; padding-right: 30px; padding-top: 20px; 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>", " - ");
|
node.value = node.value?.replace("<br>", " - ");
|
||||||
outputHTML = "<br><p>" + node.value + "</h2></div></p>";
|
outputHTML = "<br><p>" + node.value + "</h2></div></p>";
|
||||||
|
@ -207,7 +205,6 @@ function render(node: Node): string {
|
||||||
|
|
||||||
return outputHTML;
|
return outputHTML;
|
||||||
|
|
||||||
//NEW
|
|
||||||
case "Images":
|
case "Images":
|
||||||
outputHTML = "<p>" + node.value + "</p></div>"; //EXTRA closing div
|
outputHTML = "<p>" + node.value + "</p></div>"; //EXTRA closing div
|
||||||
outputHTML = outputHTML + render(node.child!);
|
outputHTML = outputHTML + render(node.child!);
|
||||||
|
|
Loading…
Reference in a new issue