Open janaki-r-bhagwath opened 1 week ago
~This seems to be the same as #529~ It is not related. The list/listItem is not spread in this case.
The additional <p>
is added by https://github.com/syntax-tree/hast-util-to-mdast/blob/main/lib/util/wrap.js#L51-L67 independently of the number of <picture>
tags.
I added a test case here: https://github.com/adobe/helix-html2md/commit/25b19acb2a90ae818c72b1ef846cf2278dc15343
The additional
<p>
is added
but that's ok. maybe should just wrap the <img><img>
with a <p>
, before hast-to-mdast:
<li>
<p><img><img></p>
</li>
It is ok, and yes we could do that. However, the behaviour is different to doc-based. There the <picture>
s are not wrapped in <p>
s.
Maybe we should not try to have the exact same output generated for html2md compared to docx2md & co.? That is the same discussion as in #529
Description If a single bullet point in a list has 2 images - it gets converted to 2 bullet points
To Reproduce Source HTML
Expected MD
Generated MD
The new line feeds in this md get converted to bullet points when md2docx is used.
Expected behavior The generated md should be
Screenshots
Version: run:
$ hlx --version
Additional context Add any other context about the problem here.