Skip to content

Commit

Permalink
Flag root node as open...
Browse files Browse the repository at this point in the history
in `cmark_parser_new_with_mem_into_root`. Closes #532.
  • Loading branch information
jgm committed Mar 13, 2024
1 parent 9d32324 commit a739d49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ cmark_parser *cmark_parser_new_with_mem_into_root(int options, cmark_mem *mem, c
cmark_strbuf_init(mem, &parser->linebuf, 0);
cmark_strbuf_init(mem, &parser->content, 0);

root->flags = CMARK_NODE__OPEN;

parser->refmap = cmark_reference_map_new(mem);
parser->root = root;
parser->current = root;
Expand Down

0 comments on commit a739d49

Please sign in to comment.