More formatting
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user