Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88df107 commit e43ded4Copy full SHA for e43ded4
src/core/render/compiler.js
@@ -181,7 +181,7 @@ export class Compiler {
181
if (checked) {
182
text = text.replace(CHECKED_RE, `<input type="checkbox" ${checked[1] === 'x' ? 'checked' : ''} />`)
183
}
184
- return `<li>${text}</li>\n`
+ return `<li${checked ? ` class="task-list-item"` : ''}>${text}</li>\n`
185
186
187
renderer.origin = origin
src/themes/basic/_layout.css
@@ -91,6 +91,10 @@ kbd {
91
vertical-align: middle;
92
93
94
+.task-list-item {
95
+ list-style-type: none;
96
+}
97
+
98
li input[type=checkbox] {
99
margin: 0 0.2em 0.25em -1.6em;
100
0 commit comments