fix(compiler): task lists style, fixed #215

This commit is contained in:
qingwei.li
2017-11-29 09:45:40 +08:00
parent 88df107c70
commit e43ded4ea7
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ export class Compiler {
if (checked) {
text = text.replace(CHECKED_RE, `<input type="checkbox" ${checked[1] === 'x' ? 'checked' : ''} />`)
}
return `<li>${text}</li>\n`
return `<li${checked ? ` class="task-list-item"` : ''}>${text}</li>\n`
}
renderer.origin = origin