showdown
showdown copied to clipboard
makeMarkdown can't convert sublists
Converting html generated with showdown back to markdown breaks if there are sublists in the input.
var md = new showdown.Converter();
md.makeMarkdown(md.makeHtml('- parent\n - child'));
md.makeMarkdown(md.makeHtml('1. parent\n 1. child'));
result:
- parent- child
1. parent1. child
expected result:
- parent
- child
1. parent
1. child
Thank you for reporting this. We will fix it for version 2.0
* a
* b
is converted to:
<ul>
<li>a</li>
<li>b</li>
</ul>
by makeHtml in version 2.1.0.
I don't know whether it's the same bug as above.
Thanks for your great project!