asciidoctor / kramdown-asciidoc

A kramdown extension for converting Markdown documents to AsciiDoc.
Other
207 stars 19 forks source link

wrong checklist converting #94

Closed aisbergde closed 2 years ago

aisbergde commented 3 years ago

the converting of checklists is very strange and looks wrong

source:

### Checklist
* [ ] Salad
* [x] Potatoes

1. [x] Clean
2. [ ] Cook

result:

=== Checklist

* +++<input type="checkbox" class="task-list-item-checkbox" disabled="disabled">++++++</input>+++Salad
* +++<input type="checkbox" class="task-list-item-checkbox" disabled="disabled" checked="checked">++++++</input>+++Potatoes

. +++<input type="checkbox" class="task-list-item-checkbox" disabled="disabled" checked="checked">++++++</input>+++Clean
. +++<input type="checkbox" class="task-list-item-checkbox" disabled="disabled">++++++</input>+++Cook

expected:

=== Checklist

* [ ] Salad
* [x] Potatoes

1. [x] Clean
2. [ ] Cook

kramdown-asciidoc-2.0.0

mojavelinux commented 3 years ago

When you see raw HTML coming through, it means there is no handler for this scenario in kramdown-asciidoc. I was not aware that Kramdown event supported checklists. Presumably, it's coming from https://github.com/kramdown/parser-gfm.

I don't have time to work on features, so unless someone comes forward to implement it, this issue will remain open.