Skip to content

Commit

Permalink
chore: update list intem function
Browse files Browse the repository at this point in the history
  • Loading branch information
arunjaindev committed Nov 25, 2024
1 parent 8d3648c commit 877b706
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Common/Markdown/MarkDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,8 @@ const MarkDown = ({ setExpandableIcon, markdown, className, breaks, disableEscap

renderer.listitem = ({ text, task, checked }: Tokens.ListItem) => {
if (task) {
if (checked) {
return `<li style="list-style: none">
<input disabled type="checkbox" checked class="dc__vertical-align-middle" style="margin: 0 0.2em 0.25em -1.4em">
${text}
</li>`
}
return `<li style="list-style: none">
<input disabled type="checkbox" class="dc__vertical-align-middle" style="margin: 0 0.2em 0.25em -1.4em">
<input disabled type="checkbox" ${checked ? 'checked' : ''} class="dc__vertical-align-middle" style="margin: 0 0.2em 0.25em -1.4em">
${text}
</li>`
}
Expand Down

0 comments on commit 877b706

Please sign in to comment.