How to have bookmarks in AppendHTML()

So I have html like:

<p>lorem <a rel='nofollow' href="#ref1"> ipsum</a> dolor</p>

.....

<h4 id="ref1">Ref1</h4>

When using AppendHTML() ​the link is there but it doesn't work. The bookmark isn't connected properly. Am I doing something wrong? Is there another way to convert HTML to DOC and presever internal links (bookmarks)?


*edit the `rel='nofollow'` is added by the form here, and doesn't exist in my HTML.


3 Replies

KP Kathiresan Paranthaman Syncfusion Team September 22, 2025 06:43 PM UTC

Hi Emmanuel,
Based on the details provided, we understand that you're facing an issue while appending bookmarks using the AppendHTML in DocIO. To assist you, we prepared a sample using the HTML content provided and appended the content into a Word document. We verified that the internal links and bookmarks are functioning correctly on our end. We have attached the sample along with the output document below.

If you are still facing any issues, kindly modify the given sample as issue reproducible sample and share to us. We will check and provide the appropriate solution at the earliest.


Regards,
Kathiresan.


Attachment: AppendHTML_Sample_402735e7.zip


EH Emmanuel Higgins replied to Kathiresan Paranthaman September 22, 2025 09:55 PM UTC

I can see, that does indeed work! In that case I'll experiment with my real-world document (which is much larger) and see if I can find the issue by process of elimination.



KP Kathiresan Paranthaman Syncfusion Team September 23, 2025 06:17 PM UTC

Hi Emmanuel,
Based on the details provided, we suspect that the issue may be specific to the document. Therefore, we kindly request you to share the document you are using on your side. We will check and provide the appropriate solution at the earliest.

Regards,
Kathiresan.


Loader.
Up arrow icon