Skip to content

Malformed DOCX for styled HTML elements #168

@K-Kumar-01

Description

@K-Kumar-01

Output comes malformed for the below HTML:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Test Document</title>
</head>
<body>

  
  <p style="margin-top: 20px;">
    <a href="https://www.turbodocx.com">This is a link</a>
  </p>
  
  <blockquote style="border-left: 3px solid #3498db; padding-left: 10px; color: #666;">
    This is a blockquote with styled content.
  </blockquote>
  
  <p>Here is some <code style="background-color: #f4f4f4; padding: 2px 6px;">inline code</code> example.</p>
  
  <p style="font-style: italic; color: #888;">
    Created with @turbodocx/html-to-docx browser version.
  </p>
</body>
</html>

Expected

Image

Current

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions