mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
chore: add class to tasklist items
This commit is contained in:
parent
dc72403acc
commit
20ca099f56
2
dist/showdown.js
vendored
2
dist/showdown.js
vendored
@ -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';
|
||||
|
2
dist/showdown.js.map
vendored
2
dist/showdown.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/showdown.min.js
vendored
2
dist/showdown.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/showdown.min.js.map
vendored
2
dist/showdown.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -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';
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user