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

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
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
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

31 views 0 10
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