mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-13 23:43:12 +10:00
fix(compiler): task lists style, fixed #215
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user