diff --git a/pkg/hicli/html.go b/pkg/hicli/html.go
index 2ae7a9f..569549c 100644
--- a/pkg/hicli/html.go
+++ b/pkg/hicli/html.go
@@ -574,6 +574,8 @@ Loop:
codeBlockLanguage = ""
codeBlock = nil
} else if tagIsAllowed(tag) && ts.pop(tag) {
+ // TODO instead of only popping when the last tag in the stack matches, this should go through the stack
+ // and close all tags until it finds the matching tag
if tag == atom.Font {
built.WriteString("")
} else {