From 6eef047ae5820f6071b1b3c02efa8377a96f6852 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 24 Oct 2024 02:31:15 +0300 Subject: [PATCH] hicli/html: add todo --- pkg/hicli/html.go | 2 ++ 1 file changed, 2 insertions(+) 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 {