Closed ec1oud closed 3 years ago
Ah I forgot the --github command line option to md2html. Then we get
<ul>
<li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled>some task to do</li>
<li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled checked>some task already done</li>
</ul>
which is fine. Qt should do the same, I suppose.
For a markdown task list:
github generates disabled checkboxes somehow, and the firefox inspector tells me they are actual disabled checkbox input elements.
But I keep wondering what is the simplest HTML that Qt could support converting to and from. We don't support HTML forms, thus we don't support the
<input>
tag at all. In a browser, this renders OK:So does this:
But with the bullet characters showing in front of the checkboxes, in both cases.
md2html generates
which could be improved somehow.
Another idea would be to use unicode checkbox characters: ☑ BALLOT BOX WITH CHECK and ☐ BALLOT BOX. But in Qt if you import html, it would be a bit weird to make that special case: if a list item begins with one of those characters, it becomes a list item with a checkbox marker rather than keeping the unicode text intact. It could work, but maybe we'd better start supporting
<input>
, but then somebody might complain that we only support checkboxes, not even the form tag.So I wonder if you have any better ideas?