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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Goff-Dupont
Published 4 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

54 views 2 3
Read article

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