diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-12-19 21:58:50 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-12-19 21:58:50 -0800 |
commit | 555dd2da77914d6120b55b64908c59053d1596ec (patch) | |
tree | 89035b5a4f96533f6c903c614d19e16a6de04b09 | |
parent | 384f06dcbc5e904f5b5048f3cca0c030cee6ddc6 (diff) |
Fixed S_can_contain to allow custom nodes to have children.
-rw-r--r-- | src/node.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -46,6 +46,7 @@ static bool S_can_contain(cmark_node *node, cmark_node *child) { case CMARK_NODE_DOCUMENT: case CMARK_NODE_BLOCK_QUOTE: case CMARK_NODE_ITEM: + case CMARK_NODE_CUSTOM_BLOCK: return S_is_block(child) && child->type != CMARK_NODE_ITEM; case CMARK_NODE_LIST: @@ -57,6 +58,7 @@ static bool S_can_contain(cmark_node *node, cmark_node *child) { case CMARK_NODE_STRONG: case CMARK_NODE_LINK: case CMARK_NODE_IMAGE: + case CMARK_NODE_CUSTOM_INLINE: return S_is_inline(child); default: |