create html part 21

This commit is contained in:
Christopher Hase 2025-03-27 15:54:22 +01:00
parent 64a18dac23
commit 836df6c93a

View file

@ -35,7 +35,7 @@ async function sendEmail(content: string) {
const info = await transporter.sendMail({ const info = await transporter.sendMail({
from: '"The Oracle" <the.oracle@holy.mountain>', from: '"The Oracle" <the.oracle@holy.mountain>',
to: "Christopher.Hase@telekom.com;test@mailhog.local", to: "Christopher.Hase@telekom.com;test@mailhog.local",
subject: "Your Horoscope Is Ready", subject: "Your New Horoscope Is Ready",
text: content, text: content,
html: html(content) html: html(content)
}); });
@ -134,8 +134,8 @@ function render(node: Node): string {
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>"); //TODO: OK?? //node.value = node.value?.replace("</h1>", "</h1>"); //TODO: OK??
outputHTML = "<p style=\"font-size: 24px;\">" + node.value + "</p>"; //TODO: OK?? outputHTML = "<p style=\"font-size: 2rem;\">" + node.value + "</p>"; //TODO: OK??
outputHTML = outputHTML + render(node.child!); outputHTML = outputHTML + render(node.child!);