cmark

Unnamed repository; edit this file 'description' to name the repository.

commit 0d201be1001b700a8d39ba2947bd61bf213ee322
parent 1f618253435bca44e269f2edf672424be88a68c4
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Thu, 31 Dec 2015 13:24:24 -0800

Allow NODE_ITEM inside NODE_CUSTOM_BLOCK.

Diffstat:
Msrc/node.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/node.c b/src/node.c
@@ -52,7 +52,7 @@ static bool S_can_contain(cmark_node *node, cmark_node *child) {
     return child->type == CMARK_NODE_ITEM;
 
   case CMARK_NODE_CUSTOM_BLOCK:
-    return child->type != CMARK_NODE_ITEM;
+    return true;
 
   case CMARK_NODE_PARAGRAPH:
   case CMARK_NODE_HEADING: