Skip to content

Commit 4b9523d

Browse files
committed
remove the class here
We shouldn't be prescriptive with CSS class names.
1 parent 90048f9 commit 4b9523d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

extensions/tasklist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static void html_render(cmark_syntax_extension *extension,
9898
bool entering = (ev_type == CMARK_EVENT_ENTER);
9999
if (entering) {
100100
cmark_html_render_cr(renderer->html);
101-
cmark_strbuf_puts(renderer->html, "<li class=\"task-list-item\"");
101+
cmark_strbuf_puts(renderer->html, "<li");
102102
cmark_html_render_sourcepos(node, renderer->html, options);
103103
cmark_strbuf_putc(renderer->html, '>');
104104
long userdata = (long)cmark_node_get_user_data(node);

test/extensions.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,8 @@ Autolink and tables.
719719
- [x] bar
720720
.
721721
<ul>
722-
<li class="task-list-item"><input type="checkbox" disabled="" /> foo</li>
723-
<li class="task-list-item"><input type="checkbox" checked="" disabled="" /> bar</li>
722+
<li><input type="checkbox" disabled="" /> foo</li>
723+
<li><input type="checkbox" checked="" disabled="" /> bar</li>
724724
</ul>
725725
````````````````````````````````
726726

@@ -731,12 +731,12 @@ Autolink and tables.
731731
- [ ] bim
732732
.
733733
<ul>
734-
<li class="task-list-item"><input type="checkbox" checked="" disabled="" /> foo
734+
<li><input type="checkbox" checked="" disabled="" /> foo
735735
<ul>
736-
<li class="task-list-item"><input type="checkbox" disabled="" /> bar</li>
737-
<li class="task-list-item"><input type="checkbox" checked="" disabled="" /> baz</li>
736+
<li><input type="checkbox" disabled="" /> bar</li>
737+
<li><input type="checkbox" checked="" disabled="" /> baz</li>
738738
</ul>
739739
</li>
740-
<li class="task-list-item"><input type="checkbox" disabled="" /> bim</li>
740+
<li><input type="checkbox" disabled="" /> bim</li>
741741
</ul>
742742
````````````````````````````````

0 commit comments

Comments
 (0)