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

Nested lists are inserted using invalid html #26

Open
5 of 6 tasks
orgtre opened this issue Mar 30, 2021 · 0 comments
Open
5 of 6 tasks

Nested lists are inserted using invalid html #26

orgtre opened this issue Mar 30, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@orgtre
Copy link

orgtre commented Mar 30, 2021

Problem description

Thanks for this essential add-on! When creating nested lists using toggle list and indent the resulting html is technically invalid. While this doesn't cause any problems within Anki as far as I can see, it creates problems and incorrectly displayed output when trying to parse the notes using external programs such as pandoc.

For a minimal example, open a blank note, press "Toggle unordered list", write something and press enter, press "Indent", and look at the html produced:

<ul><li>item</li><ul><li><br></li></ul></ul>

According to https://stackoverflow.com/questions/5899337/proper-way-to-make-html-nested-list this is not correct while this would be:

<ul><li>item<ul><li><br></li></ul></li></ul>

I realize this might not affect many people, but if there is some quick way to fix this, it would help me a lot.

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant