md_analyze_line: End raw HTML block prematurely if enclosing container ends.
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 9e33802..7e3ab8c 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -4721,8 +4721,10 @@ redo:
}
}
- line->type = MD_LINE_HTML;
- goto done;
+ if(n_parents == ctx->n_containers) {
+ line->type = MD_LINE_HTML;
+ goto done;
+ }
}
/* Check for blank line. */