Welcome to little lamb

Code » qmdoc » commit d80fec6

Fix closing titles

author Olivier Brunel
2022-12-27 13:06:59 UTC
committer Olivier Brunel
2022-12-27 13:06:59 UTC
parent 0eb287ebe6ed4c961121f7af03f263318241bd65

Fix closing titles

main.c +1 -1

diff --git a/main.c b/main.c
index 0262289..7433bb9 100644
--- a/main.c
+++ b/main.c
@@ -393,7 +393,7 @@ leave_block(MD_BLOCKTYPE type, void *details, void *ctx_)
                 MD_BLOCK_H_DETAIL *d = details;
                 char buf[UINT32_FMT];
                 buf[uint32_fmt(buf, (uint32) d->level)] = '\0';
-                if (!raw_str(ctx, "</") || !raw_str(ctx, buf) || !raw_str(ctx, ">"))
+                if (!raw_str(ctx, "</h") || !raw_str(ctx, buf) || !raw_str(ctx, ">"))
                     return ERR_PARSER_LEAVE_BLOCK;
             }
             break;