md_parser.ml: fix: algorithm for lists was wrong