chore: add class to tasklist items

This commit is contained in:
Estevão Soares dos Santos 2015-07-11 23:09:47 +01:00
parent dc72403acc
commit 20ca099f56
6 changed files with 8 additions and 8 deletions

2
dist/showdown.js vendored
View File

@ -1702,7 +1702,7 @@ showdown.subParser('lists', function (text, options, globals) {
bulletStyle = '';
if (taskbtn) {
bulletStyle = ' style="list-style-type: none;"';
bulletStyle = ' class="task-list-item" style="list-style-type: none;"';
}
return spl + tp + '<li' + bulletStyle + '>' + item + '</li>\n';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -76,7 +76,7 @@ showdown.subParser('lists', function (text, options, globals) {
bulletStyle = '';
if (taskbtn) {
bulletStyle = ' style="list-style-type: none;"';
bulletStyle = ' class="task-list-item" style="list-style-type: none;"';
}
return spl + tp + '<li' + bulletStyle + '>' + item + '</li>\n';

View File

@ -2,9 +2,9 @@
<ul>
<li>foo</li>
<li style="list-style-type: none;"><input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"> bar</li>
<li style="list-style-type: none;"><input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"> baz</li>
<li style="list-style-type: none;"><input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;" checked> bazinga</li>
<li class="task-list-item" style="list-style-type: none;"><input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"> bar</li>
<li class="task-list-item" style="list-style-type: none;"><input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"> baz</li>
<li class="task-list-item" style="list-style-type: none;"><input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;" checked> bazinga</li>
</ul>
<p>otherthings</p>