UWC conversion of MindTouch anchors

What is the best way to convert local links in DekiWiki (MindTouch) to anchors for Confluence? Internal links appear to convert correctly when the header title is "linkname" as in this example: <a href="#linkname">, but not when #linkname does not match the header title. <a name="linkname"></a> causes an error, <span id="linkname" /> doesn't work. What is the easiest way to get the converter to insert a {anchor:linkname} when converting?

3 answers

1 accepted

Hi Ted

AppFusions supports the UWC and migrations as a whole - and have successfully migrated MindTouch to Confluence also before. Please email us at info@appfusions.com.




Yes- it's been over a year and a half since I was working on migrating a MindTouch (Deki) Wiki to Confluence, and so I don't remember completely. But I had to use Eclipse to build the UWC tool, and then actually change some of the Java code. A lot can be done in the converter.mindtouch.properties file. Here is a relevant piece:

#Internal links (Anchors) cause the Parser to fail

#not pretty - but remove any rel=".*?" in an internal link and add it in the next line
#some internal links don't have rel="internal"
Mindtouch.3449.custom.java-regex=(<a.*?href="#.*?")(.*?)(>){replace-with}$1$2 rel="internal">

I really learned a lot about Java regular expressions- there are a lot of options. Even then our conversion was not entirely perfect- there were a few garbled page- but most converted ok.

Thanks Ellen, sorry for getting back to you, but I resolved the issue with anchors. I have your contact info for future reference.


thanks - sounds good.

Best, Ellen

Hi Ted,
Would it be possible that you share your solution here with us? ;-)

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

171 views 12 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot