summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/node.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node.c b/src/node.c
index d4c39cc..f618c8a 100644
--- a/src/node.c
+++ b/src/node.c
@@ -46,12 +46,14 @@ 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:
return child->type == CMARK_NODE_ITEM;
+ case CMARK_NODE_CUSTOM_BLOCK:
+ return child->type != CMARK_NODE_ITEM;
+
case CMARK_NODE_PARAGRAPH:
case CMARK_NODE_HEADING:
case CMARK_NODE_EMPH: