How can I automatically remove all of the anchor macros post- MS-Word import?

I just imported an MS Word doc. Looks pretty good, but there are as many as four anchor macros in front of every heading, with IDs like "_Toc211850156".

If this was Confluence 3.x, I'd view source, do a search/replace in my favorite text editor, and be done, but I'm in Confluence 4.x OnDemand so I'm clueless on how to automate the process to remove what are literally thousands of anchor tags.

What can I do?


Update 2013-Oct-31 :

3 answers

Hi Tim,

I think that _tocxxxxxxx means that the anchor created by heading settings in MS Word by a Table of Content. I don't think that you can delete them automatically.

You can fix the document in MS Worn and re-import or use Office macros to embed an office document into a confluence page.

I hope this helps.



Tim, did you come up with any solution for removing the anchors other than editing the Word document? There must be a way via the Source editor... I just can't figure it out!

@Susan - I believe I ended up pasting into my desktop editor (Sublime) as text *first* and then pasting into Confluence.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,008 views 14 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you