• Hello,

    I’ve been using Mammoth DOCX Converter for a while now and love it (thank you!), but I’m having a consistent issue that I’m hoping someone here can help with.

    I use Google Docs to create the documents (with my team) and then export them from there as a DOCX file. When importing that file into WP using Mammoth, anchor links are getting inserted inside all of the heading tags, right before the text of the heading. It looks like this:

    <h1><a id="_54erq3a8gvr8"></a>How to ... </a></h1>

    This anchor tags don’t appear in the DOCX file when viewing it in Word. But they appear when importing into WP via Mammoth.

    I’ve tried uploading the exported Google Doc (in DOCX format) into Microsoft Word online, then saving it out again. THAT imports cleanly.

    So… I’m wondering if anyone else has had this issue and/or has any insights into how to stop it. I’d love to avoid having to (1) double-process the doc through Word to get it to work cleanly or (2) keep having to strip out the anchor links in the WP editor.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Michael Williamson

    (@michaelwilliamson)

    Those anchor tags will appear when there are bookmarks in the source document. Removing them from the source document should prevent the anchor tags from appearing in the converted HTML.

    Thread Starter TheRVgeeks

    (@thervgeeks)

    Hi @michaelwilliamson, thanks for the reply. That’s what I thought should happen, too. But I’m not creating any bookmarks in my Google documents… all I’ve added are H1, H2, H3, etc tags for my headings. But when I save the document out as a .DOCX file and then import using Mammoth, there are anchor tags inserted before the text inside each heading tag.

    Weird, right?!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Docs Heading Tags Include Anchor Links’ is closed to new replies.