summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/blocks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/blocks.c b/src/blocks.c
index f49ad4e..a22594e 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -945,7 +945,9 @@ static void open_new_blocks(cmark_parser *parser,
}
i = parser->column - save_column;
- if (i >= 5 || i < 1) {
+ if (i >= 5 || i < 1 ||
+ // only spaces after list marker:
+ S_is_line_end_char(peek_at(input, parser->offset)) ) {
data->padding = matched + 1;
parser->offset = save_offset;
parser->column = save_column;