We've observed an issue related to documents with customized header styling. Specifically, when such documents are converted to HTML, the headers receive an explicit font-weight: normal style.
Subsequently, when this HTML is passed through htmldiff-js to generate differences, new elements are introduced for insertions and deletions. These tags do not carry explicit font-related styles. As a result, they inherit the styling of the surrounding elements—in this case, the h3 tag—leading to inconsistent font appearances in the diff output.
For example -
<div #newHtml><div><h3 style="margin-top:12pt; margin-left:39.6pt; margin-bottom:12pt; text-indent:-21.6pt; text-align:justify; line-height:108%; font-size:11pt; -aw-import:list-item; -aw-list-level-number:1; -aw-list-number-format:'%1.'; -aw-list-number-styles:'upperLetter'; -aw-list-number-values:'8'; -aw-list-padding-sml:10.6pt"><span style="-aw-import:ignore"><span style="font-family:Arial; font-weight:normal">H.</span><span style="width:10.6pt; font:7pt 'Times New Roman'; display:inline-block; -aw-import:spaces"> </span></span><span style="font-family:Arial; font-weight:normal; text-decoration:underline">Return of Information</span><span style="font-family:Arial; font-weight:normal">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. </span><span style="font-family:Arial; font-weight:normal; -aw-import:spaces"> </span><span style="font-family:Arial; font-weight:normal">Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.Testing to check if the statements are now in bold.</span></h3></div></div>
<div #oldHtml><div style="margin-top:18pt; margin-bottom:12pt; border-bottom:1.5pt solid #000000; padding-bottom:1pt"><h3 style="margin-top:12pt; margin-left:39.6pt; margin-bottom:12pt; text-indent:-21.6pt; font-size:11pt"><span style="font-weight:normal; text-decoration:underline">Return of Information</span><span style="font-weight:normal">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</span><span style="-aw-bookmark-end:_Hlk193649818"></span><span style="-aw-bookmark-end:_Hlk193652547"></span></h3><p style="margin-top:0pt; margin-bottom:12pt"><span style="-aw-import:ignore"> </span></p><p style="margin-top:0pt; margin-bottom:12pt"><span style="-aw-import:ignore"> </span></p><p style="margin-top:0pt; margin-bottom:12pt"><span style="-aw-import:ignore"> </span></p></div></div>

The difference from above content generates some text in bold. Request you to review it and provide your feedback
We've observed an issue related to documents with customized header styling. Specifically, when such documents are converted to HTML, the headers receive an explicit font-weight: normal style.
Subsequently, when this HTML is passed through htmldiff-js to generate differences, new elements are introduced for insertions and deletions. These tags do not carry explicit font-related styles. As a result, they inherit the styling of the surrounding elements—in this case, the h3 tag—leading to inconsistent font appearances in the diff output.
For example -
<div #newHtml><div><h3 style="margin-top:12pt; margin-left:39.6pt; margin-bottom:12pt; text-indent:-21.6pt; text-align:justify; line-height:108%; font-size:11pt; -aw-import:list-item; -aw-list-level-number:1; -aw-list-number-format:'%1.'; -aw-list-number-styles:'upperLetter'; -aw-list-number-values:'8'; -aw-list-padding-sml:10.6pt"><span style="-aw-import:ignore"><span style="font-family:Arial; font-weight:normal">H.</span><span style="width:10.6pt; font:7pt 'Times New Roman'; display:inline-block; -aw-import:spaces"> </span></span><span style="font-family:Arial; font-weight:normal; text-decoration:underline">Return of Information</span><span style="font-family:Arial; font-weight:normal">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. </span><span style="font-family:Arial; font-weight:normal; -aw-import:spaces"> </span><span style="font-family:Arial; font-weight:normal">Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.Testing to check if the statements are now in bold.</span></h3></div></div><div #oldHtml><div style="margin-top:18pt; margin-bottom:12pt; border-bottom:1.5pt solid #000000; padding-bottom:1pt"><h3 style="margin-top:12pt; margin-left:39.6pt; margin-bottom:12pt; text-indent:-21.6pt; font-size:11pt"><span style="font-weight:normal; text-decoration:underline">Return of Information</span><span style="font-weight:normal">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</span><span style="-aw-bookmark-end:_Hlk193649818"></span><span style="-aw-bookmark-end:_Hlk193652547"></span></h3><p style="margin-top:0pt; margin-bottom:12pt"><span style="-aw-import:ignore"> </span></p><p style="margin-top:0pt; margin-bottom:12pt"><span style="-aw-import:ignore"> </span></p><p style="margin-top:0pt; margin-bottom:12pt"><span style="-aw-import:ignore"> </span></p></div></div>The difference from above content generates some text in bold. Request you to review it and provide your feedback