Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasklist seemingly not working #1022

Open
GlitchDevX opened this issue Dec 30, 2024 · 0 comments
Open

Tasklist seemingly not working #1022

GlitchDevX opened this issue Dec 30, 2024 · 0 comments

Comments

@GlitchDevX
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant