onizet / html2openxml

Html2OpenXml is a small .Net library that convert simple or advanced HTML to plain OpenXml components. This program has started in 2009, initially to convert user's comments from SharePoint to Word.
MIT License
306 stars 107 forks source link

Ordered list with paragraphs not converted correctly #62

Closed 247GradLabs closed 2 months ago

247GradLabs commented 5 years ago

Hi there,

I'm trying to convert an ordered list. Some items have paragraphs inside:

<h2>Test</h2>
<ol>
    <li>Number 1</li>
    <li>Number 2</li>
    <li>
        <p>Number 3</p>
    </li>
    <li>Number 4</li>
</ol>

For these items, no valid list item is generated and following items are put in a new list:

Best regards

247GradLabs commented 5 years ago

Probably related to #57

247GradLabs commented 5 years ago

@onizet Could you please have a look?

@lacsyst @devrony Anyone interrested to investigate the problem, if the owner of this repository does not have the passion to fix it?