-
-
Notifications
You must be signed in to change notification settings - Fork 268
Closed
Labels
S: triageIssue needs triage.Issue needs triage.
Description
1. Summary
It would be nice, if StripHTML or any another extension be able to delete extra p tags inside li.
2. Argumentation
-
It’s extra tags, they aren’t needed.
-
Interline spacing. See the real list, where items 1, 2 and 3 hasn’t
ptag, but items 4 and 5 has:The interline spacing is different. It isn’t the best idea for design.
-
Extra
ptags increase a DOM size. A large DOM tree isn’t the best idea.
3. MCVE
-
I have a file
KiraList.md:1. Kira first <!--- Kira comment --> 1. Kira second
-
python -m markdown KiraList.md:<ol> <li>Kira first</li> </ol> <!--- Kira comment --> <ol> <li>Kira second</li> </ol>
Not good default behavior; I don’t need the second
ol. -
I found the PyPI extension python-markdown-comments;
python -m markdown -x mkdcomments KiraList.md:<ol> <li> <p>Kira first</p> </li> <li> <p>Kira second</p> </li> </ol>
It’s better, but I can’t found, how I can remove extra p tags.
4. Not helped
- Tidy don’t delete these tags by default. I can’t find any option that do it.
- Also, I can’t found any plugin for Python Markdown, Pelican (my static site generator) or Grunt that can solve this problem.
Thanks.
Metadata
Metadata
Assignees
Labels
S: triageIssue needs triage.Issue needs triage.
