If markdown has paragraph between list item, every backward list item become each paragraph.
I think after parsing inner block, this list will be new list.
how do you think to append flags ^= MKD_LI_BLOCK; flags |= MKD_LI_END; like under code..
if (_flags & MKD_LIBLOCK) {
/ intermediate render of block li _/
if (sublist && sublist < work->size) {
parse_block(inter, rndr, work->data, sublist);
parse_block(inter, rndr, work->data + sublist,
work->size - sublist); }
else {
parseblock(inter, rndr, work->data, work->size);
/
if newline has one among list item, every backword list item become each paragraph. so i changed this code.
after parsing inner block, the list will be new list.
by DongHyunKo
/
flags ^= MKD_LI_BLOCK;
*flags |= MKD_LI_END; } }
If markdown has paragraph between list item, every backward list item become each paragraph. I think after parsing inner block, this list will be new list. how do you think to append flags ^= MKD_LI_BLOCK; flags |= MKD_LI_END; like under code..
if (_flags & MKD_LIBLOCK) { / intermediate render of block li _/ if (sublist && sublist < work->size) { parse_block(inter, rndr, work->data, sublist); parse_block(inter, rndr, work->data + sublist, work->size - sublist); } else { parseblock(inter, rndr, work->data, work->size); / if newline has one among list item, every backword list item become each paragraph. so i changed this code. after parsing inner block, the list will be new list. by DongHyunKo / flags ^= MKD_LI_BLOCK; *flags |= MKD_LI_END; } }
list item1 list item2
list item3 list item4 list item5
will be under....
list item1 list item 2
list item3
list item4
list item5