More formatting

This commit is contained in:
2026-07-14 19:28:28 +02:00
parent fd8bf59cd9
commit 2cc4aae139
4 changed files with 35 additions and 0 deletions
+21
View File
@@ -213,6 +213,27 @@ print_html :: proc(token: ^Token) {
case TokenType.HorizontalRule:
fmt.print("<hr>\n")
case TokenType.Underline:
fmt.print("<u>")
for child in token.children {
print_html(child)
}
fmt.print("</u>")
case TokenType.Superscript:
fmt.print("<sup>")
for child in token.children {
print_html(child)
}
fmt.print("</sup>")
case TokenType.Subscript:
fmt.print("<sub>")
for child in token.children {
print_html(child)
}
fmt.print("</sub>")
case TokenType.BreakLine:
fmt.print("<br>\n")