-
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Hi, thanks all for the great library!
I have a issue when multiple paragraphs are nested inside list item: only the first paragraph is exported to docx.
Can you help me?
Minimal reproducible example
Setup
Using script in example/example-node.js to convert HTML to docx format.
Substitute htmlString var value with:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Document</title>
</head>
<body>
<div>
<p>Test case: multiple paragraphs in a list item</p>
<ul style="list-style-type: circle; margin-bottom: 0in; margin-top: 0px;">
<li style="line-height: normal; margin: 0in 0in 0in 0px; font-size: 11pt; font-family: Calibri, sans-serif;">
<p style="font-size: 9.0pt; font-family: Arial, sans-serif;">Paragraph 1</p>
<p style="font-size: 9.0pt; font-family: Arial, sans-serif;">Paragraph 2</p>
</li>
</ul>
</div>
</body>
</html>Expected result
"Paragraph 1" and "Paragraph 2" are exported.
Actual result
Only "Paragraph 1" exported.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels