Skip to content

Commit

Permalink
chore: add class to tasklist items
Browse files Browse the repository at this point in the history
  • Loading branch information
tivie committed Jul 11, 2015
1 parent dc72403 commit 20ca099
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/showdown.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/showdown.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/showdown.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/showdown.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/subParsers/lists.js
Expand Up @@ -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';
Expand Down
6 changes: 3 additions & 3 deletions test/features/#164.4.tasklists.html
Expand Up @@ -2,9 +2,9 @@ <h1 id="mythings">my things</h1>

<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>

0 comments on commit 20ca099

Please sign in to comment.