Commit 5204c30d4038e3231072f3ada77255c8b8344bd5

Martin Mitas 2024-01-11T12:41:40

md_is_html_block_end_condition: Fix return value.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/md4c.c b/src/md4c.c
index 21c2ed9..ffc556f 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -5541,7 +5541,7 @@ md_is_html_block_end_condition(MD_CTX* ctx, OFF beg, OFF* p_end)
             if(beg >= ctx->size  ||  ISNEWLINE(beg)) {
                 /* Blank line ends types 6 and 7. */
                 *p_end = beg;
-                return TRUE;
+                return ctx->html_block_type;
             }
             return FALSE;