HTML extraction method to Wiki mark up

JEMH is able to provide the facility to render an HTML mail to Wiki mark up in order to aid the visual aspects of the mail in Jira. However, while the conversion takes place, there are certain aspects which can be valid in HTML but are not valid in Wiki mark up.

Colouring

Colouring has only been implemented within the following elements/tags:

  • <p>

  • <span>

  • <font>

Therefore, this will restrict you from using colours inside of an containers i.e. <div> tags. The reason being if a <div> tag contains colouring and a child element within the <div> i.e. <p> also contains colouring, this will result in an invalid Wiki mark up as Jira does not allow nested colours. In additional this this, this can also potentially impact other elements i.e. Bold or Italic if nested colour is present.

For example

HTML

<div style="color:blue"> <p>This should be blue</p> <p style="color:red">This should be red</p> </div>



Wiki mark up conversion

{color:blue} This should be blue {color:red} This should be red {color} {color}



In Jira