diff options
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blocks.c b/src/blocks.c index f916936..7bf4d3d 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -637,6 +637,7 @@ void cmark_process_line(cmark_doc_parser *parser, const char *buffer, hashpos++; } container->as.header.level = level; + container->as.header.setext = false; } else if ((matched = scan_open_code_fence(&input, first_nonspace))) { @@ -660,6 +661,7 @@ void cmark_process_line(cmark_doc_parser *parser, const char *buffer, container->type = NODE_HEADER; container->as.header.level = lev; + container->as.header.setext = true; offset = input.len - 1; } else if (!(container->type == NODE_PARAGRAPH && !all_matched) && |