mirror of
https://github.com/marktext/marktext.git
synced 2025-05-17 01:10:41 +08:00
improve task list style (#853)
This commit is contained in:
parent
aa59e8a0ca
commit
f226f87dcb
@ -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 ? ' /' : '') +
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user