UWC conversion lines for tables?

Has anybody created conversion lines in UWC to convert HTML tables (<table, <tr, and <td tags) into the {table, {tr, and {td macros offered in Adaptivist's Content Formatting plugin?

I thought I'd check here before struggling thru the regex myself.

Also, is there any place to share converter lines/files? I'm dealing with a TWiki whose markup has been liberally sprinkled with HTML tags. I'd be glad to share my custom converter with others if there's some forum for it...

1 answer

1 accepted

Accepted Answer
1 vote

Check out the Mediawiki's Table handling. There's converters for outputting table syntax (from either mediawiki or html tables) into either Confluence table or Content Formatting syntaxes. The html transformations depend on the Xml Framework, which does need the html to be well-formed. If yours isn't, and you've already scrubbed out any non-html xml, you can use htmltidy option to clean up the html in question.

As for a place to share custom converters, if they're java-regex properties (and not classes) you could add them as a comment to the UWC TWiki Notes page. Otherwise, the best thing to do would perhaps be to submit a patch? You can email me offlist to discuss that if you're interested. (laura.kolker@gmail.com)

Thanks.

FWIW, I had been thinking that whatever code might be used for converting <table parameters to {table should also be adaptable to migrate <span style="..."> to {span:style=...} and <div to {div

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...

116 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