showdown icon indicating copy to clipboard operation
showdown copied to clipboard

Tasklist seemingly not working

Open GlitchDevX opened this issue 1 year ago • 0 comments

I believe that the tasklists are broken. In my project the input tags are missing inside the list elements.

Then I looked onto the demo page where I saw that the input elements are also missing image With this HTML generated:

<ul>
  <li class="task-list-item"> checked list item</li>
  <li class="task-list-item"> unchecked list item</li>
</ul>

Things I have tried already (in my project):

  • Using the newest version
  • Check if tasklists is set to true in the configuration
  • Set the flavor to github

This is the way I currently use it:

const converter = new showdown.Converter({ tables: true, tasklists: true });
converter.setFlavor('github');
const descriptionHtml = converter.makeHtml(
    this.description
);

Am I missing something or is it actually broken?

GlitchDevX avatar Dec 30 '24 19:12 GlitchDevX