fixing lists and blockquotes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
simonpetit 2025-12-10 17:44:11 +00:00
parent 9bfa284466
commit bfafb69401

View File

@ -157,7 +157,7 @@ env = last()
# NEW LOGIC: If we hit normal text, close any open code, pre, lists, or quotes.
while (env != "none") {
# Lists, blockquotes, and code must be closed by un-indented text
if (env == "ul" || env == "ol" || env == "blockquote" || env == "code" || env == "pre") {
if ( env == "code" || env == "pre") {
env = pop()
print "</" env ">"
env = last()