i'm using the marked.js library to parse input from a textarea into html .
in markdown a task syntax is written like this : - [x] done task
or - [ ] not done task
.
result after parsing :
<ul>
<li>
<input checked="" disabled="" type="checkbox">
done task
</li>
</ul>
<ul>
<li>
<input disabled="" type="checkbox">
not yet done task
</li>
</ul>
i tried to search for a function to override and tweek it to get my desired result , but i didn't understand how the listitem function works .
how do i remove the bullet points only on the task case , but not if i'm parsing a normal ordered/unordered list syntax ?