I'm using GFM and tasklists with Showdown and it creates incorrect markdown from html.
Showdown Setup
Version:1.9.1
var converter = new showdown.Converter({
tasklists: true
})
converter.setFlavor('github')
converter.makeHtml
const initialValue = `
- [x] This task is done
- [ ] This is still pending`
const htmlString = converter.makeHtml(initialValue)
console.log(htmlString)
Output
<ul>
<li class="task-list-item" style="list-style-type: none;"><input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;" checked> This task is done</li>
<li class="task-list-item" style="list-style-type: none;"><input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"> This is still pending</li>
</ul>
I'm using GFM and tasklists with Showdown and it creates incorrect markdown from html.
Showdown Setup
Version: 1.9.1
converter.makeHtml
Output
converter.makeMarkdown
Output
As you can see, converting back to markdown generates a mix of markdown and html.
Complete code at https://codesandbox.io/s/showdown-example-n3dyv. Check the output in the Sandbox console