Skip to content

Commit

Permalink
Fix eof handling in a middle of task list item.
Browse files Browse the repository at this point in the history
  • Loading branch information
mity committed Jan 10, 2024
1 parent ebbb12e commit c6535ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/md4c.c
Original file line number Diff line number Diff line change
Expand Up @@ -6141,7 +6141,7 @@ md_analyze_line(MD_CTX* ctx, OFF beg, OFF* p_end,
task_container->is_task = TRUE;
task_container->task_mark_off = tmp + 1;
off = tmp + 3;
while(ISWHITESPACE(off))
while(off < ctx->size && ISWHITESPACE(off))
off++;
line->beg = off;
}
Expand Down

0 comments on commit c6535ff

Please sign in to comment.