Phonemos User Guide

Convert Wiki-Markup to XHTML based storage

Problem

The confluence content is old and still contains old style content. In Confluence it looks like that (TaxInfo example):

Screenshot from Confluence Editor (View mode renders the table)e)

This will import into Phonemos as plain text instead of the expected table.

Solution

Convert the Confluence content using the method described in https://confluence.atlassian.com/conf81/migration-from-wiki-markup-to-xhtml-based-storage-format-1209876102.html:

  • goto https://<confluence-root>/admin/unmigratedcontent.action

  • start the conversion

  • → Content that is not converted probably still still contains unknown macros

Additional Considerations

If you have custom tags around the markdown (as {web08-table} in the example above you have to replace that first. If you have some pages it’s best to do this directly on the database:

1 2 3 UPDATE bodycontent SET body = regexp_replace(body, E'\\{web08-table[^\\}]*\\}', '', 'g') WHERE body LIKE '%web08-table%';

or to convert link style macros

1 2 3 UPDATE bodycontent SET body = regexp_replace(body, E'\\{web08-link:([^\\}]*)\\}', E'[\\1]', 'g') WHERE body LIKE '%{web08-link%';

after that clear the cache (important, /admin/cache/showStatistics.action) run the converter again.