Uncodin / bypass

Skip the HTML, Bypass takes markdown and renders it directly on Android and iOS.
http://uncodin.github.com/bypass/
Apache License 2.0
1.52k stars 193 forks source link

blocked listitem parsing issue #157

Open DongHyunKo opened 10 years ago

DongHyunKo commented 10 years ago

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