lib/markdown2: add tests from issues