summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/lib/blocks.js1
-rw-r--r--src/blocks.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index 791b74f..fd76b15 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -465,6 +465,7 @@ var incorporateLine = function(ln, line_number) {
// on an empty list item.
container.last_line_blank = blank &&
!(container.t == 'BlockQuote' ||
+ container.t == 'SetextHeader' ||
container.t == 'FencedCode' ||
(container.t == 'ListItem' &&
container.children.length === 0 &&
diff --git a/src/blocks.c b/src/blocks.c
index a30560f..48ca7e7 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -728,6 +728,7 @@ void cmark_process_line(cmark_doc_parser *parser, const char *buffer,
// on an empty list item.
container->last_line_blank = (blank &&
container->type != NODE_BQUOTE &&
+ container->type != NODE_SETEXT_HEADER &&
container->type != NODE_FENCED_CODE &&
!(container->type == NODE_LIST_ITEM &&
container->first_child == NULL &&