Open venikx opened 4 months ago
org-element parses these examples as paragraphs, so this should be handled in uniorg-rehype
.
It's a bit more complicated than simply removing <p>
tags though — tags are only removed if it's a single paragraph, possibly followed by a sublist.
Example:
- item1
- item2
- a longer item
spanning
multiple lines has a p tag
- a paragraph followed by a sublist
- does not have a p tag
...produces:
<ul>
<li>item1</li>
<li>item2</li>
<li>
<p>a longer item spanning</p>
<p>multiple lines has a p tag</p>
</li>
<li>
a paragraph followed by a sublist
<ul>
<li>does not have a p tag</li>
</ul>
</li>
</ul>
The following snippet:
Parses it as:
Then gets converted to:
From what I can tell ox-html does not add an extra paragraph, I have not verified if org-element wraps this list-item in an extra paragraph or not. If not, this should be fixed in
uniorg-parse
. If org-element wraps it, and ox-html does not, it should be handled inuniorg-rehype
.