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?

-Tim

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.

Cheers,

Selcuk

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

852 views 23 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