improve task list style (#853)

This commit is contained in:
Felix Häusler 2019-04-03 19:18:04 +02:00 committed by Ran Luo
parent aa59e8a0ca
commit f226f87dcb
2 changed files with 7 additions and 1 deletions

View File

@ -103,7 +103,7 @@ Renderer.prototype.listitem = function (text, checked) {
}
// task list
return '<li><input type="checkbox"' +
return '<li class="task-list-item"><input type="checkbox"' +
(checked ? ' checked=""' : '') +
'disabled=""' +
(this.options.xhtml ? ' /' : '') +

View File

@ -86,6 +86,12 @@ class ExportHtml {
.markdown-body table {
display: table;
}
.markdown-body li.task-list-item {
list-style-type: none;
}
.markdown-body li > [type=checkbox] {
margin: 0 0 0 -1.3em;
}
.markdown-body input[type="checkbox"] ~ p {
margin-top: 0;
display: inline-block;