Google Docs Heading Tags Include Anchor Links
-
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!
- The topic ‘Google Docs Heading Tags Include Anchor Links’ is closed to new replies.