Max Nikulin <maniku...@gmail.com> writes:

> On 31/12/2022 21:08, Ihor Radchenko wrote:
>> nunnery-09-bayside writes:
>> 
>>> a. [ ] foo
>>> b. [ ] bar
>>>
>>>     | a | b | c |
>> 
>> <li class="off"><code>[&#xa0;]</code> foo</li>
>> <li class="off"><code>[&#xa0;]</code> <p>bar</p>
>
> I would expect e.g.
>
>      <li class="off"><p><code>[&#xa0;]</code> bar</p>
>
>>    <table border="2" cellspacing="0" cellpadding="6" rules="groups" 
>> frame="hsides">
>
>> Probably, the reason is <p> tag in the first paragraph of the item.
>> I am not sure, however, if it is safe to drop it.
>
> If an item contains block-level element then text paragraphs should be 
> wrapped with <p>...</p>, however there is no reason to put checkboxes 
> outside of first paragraphs.

Timothy, may you take a look?
This is a bit non-trivial because paragraph is transcoded before the
containing list item. So, we may need to pair parent lookup and child
lookup in the transcoders - not ideal.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to