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

This widget could not be displayed.

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)


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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

178 views 18 7
Join discussion

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