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 Sign up to answer
Community showcase
Posted Friday in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: https://www.icloud.com/keynote/0RyJ4VEdNUpjDpGfMhfZx9fEg#Confluence_Security_Advisor More details: https://co...

46 views 1 0
View post

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