Hello,
We recommend you read the following documentation pages:
- HTML to Word: https://www.phpdocx.com/documentation/introduction/html-to-word-PHP
- Practical guide HTML and CSS: https://www.phpdocx.com/documentation/practical/html-and-css
- HTML API: https://www.phpdocx.com/documentation/htmlapi-documentation
There's no issue when transforming HTML. The default CSS styles (templates/html.css file) used by phpdocx apply bold style to heading tags and other default styles.
If you don't want to apply to some default style (such as bold in HTML heading tags) you can set new styles when transforming HTML. For example:
$html = '
<style>
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
}
</style>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
';
$docx->embedHTML($html);
Regards.