builder - use contains parameter instead of has_children boolean.
builder - use contains parameter instead of has_children boolean.

contains tells you what kind of nodes the node can contain.

jgm/cmark-lua,jgm/cmark-lua