UWC is unable to convert the HTML tags to correct form in Confluence

Hi,

I am using the UWC to convert our Mediawiki data to Confluence. I am able to create text files for all the data successfully. But I figured out that some pages have HTML tags in the text files

eg - <font face="Arial" color="black" size="6" font-weight="bold">Title of Page</font>

After checking throughly I found out that this is the way data is stored in the Mediawiki database. So it gets carried forward to the text files created.

When this text file is used to create pages in Confluence, it doesn't get converted to h1 or h2. Thus the page created in Confluence contains the data with the html tags in them.

So my question is, does the UWC support this type of syntax or do I need to write my own parser to parse such occurences of HTML tags.

Secondly, I have a problem with the bullet points as well. What I found is say there are 4 bullet points under a topic, say for 3 the style is maintained and the last is converted as "*". This occurs sometimes for some pages only.

eg-

In the text file

* Topic 1

* Topic 2

* Topic 3

In Confluence

  • Topic 1
  • Topic 2

* Topic 3

Thirdly, the attachments are not getting carried to Confluence. I tried to search for the attachments location in Mediawiki but could not locate it.

Any help would be helpful.

2 answers

1 accepted

Accepted Answer
0 votes

I had to write many regular expressions and put them in the mediawiki.converter.properties file to get it work. For some cases I changed the already existing regular expressions to suite my requirements. This way it worked.

Hi Satyam, There will be nothing like attachments in MediaWiki, you will find 'Images' directory this is what they call as attachments.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

132 views 6 8
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