Skip to content

Commit

Permalink
fix(core): supports task list
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Mar 29, 2020
1 parent 39aae0f commit bccfde2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bytemd/src/Element.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@
<Elements nodes={children} {plugins} />
</ul>
{:else if tagName === 'li'}
<li>
<li class={properties.className && properties.className.join(' ')}>
<Elements nodes={children} {plugins} />
</li>
{:else if tagName === 'input' && properties.type === 'checkbox'}
<input type="checkbox" disabled checked={properties.checked} />
{:else if tagName === 'a'}
<a href={santitizeHref(properties.href)}>
<Elements nodes={children} {plugins} />
Expand Down

0 comments on commit bccfde2

Please sign in to comment.