---
title: "Wiki Markup, HTML and Links"
canonical: "https://docs.getxporter.app/space/XPORTERCLOUD/527053/Wiki%20Markup%2C%20HTML%20and%20Links"
format: markdown
---
> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> > Macro (toc)

## Fields with Wiki Markup

<span style="color: #0d0d0d">If the fields to be exported are configured to use a </span>[<span style="color: #0d0d0d">Wiki Markup Renderer</span>](https://confluence.atlassian.com/display/JIRA/Configuring+Renderers#ConfiguringRenderers-WikiStyleRenderer)<span style="color: #0d0d0d">, you can include the Wiki rendering in the resulting document.</span>

Definition: `${wiki:<Field name>}`

### Sample Code

```
${wiki:Description}
${wiki:Custom Free Text}
```

> ℹ️ When creating an Excel template document, use: `${wiki:Description}`

## <span style="color: #000000">Inserting Hyperlinks</span>

[<span style="color: #0d0d0d">Xporter</span>](https://marketplace.atlassian.com/apps/891368/xporter-export-issues-from-jira?tab=overview&hosting=cloud)<span style="color: #0d0d0d"> also enables the generation of hyperlinks dynamically.</span>

Definition: `@{title=<Link Title>|href=<Link Address>}`

Generate a link named with the Issue key, linking to the issue address on the Jira Server: `@{title=${Key}|href=${BaseURL}/browse/${Key}}`

> ℹ️ When creating an Excel template document, use: `${link:title=${Key},href=${BaseURL}/browse/${Key}}`

## Fields with HTML

If the fields to be exported are configured to use an HTML renderer, such as the one provided by the [JEditor](https://marketplace.atlassian.com/plugins/com.jiraeditor.jeditor)[ plugin](https://marketplace.atlassian.com/plugins/com.jiraeditor.jeditor), you can include the HTML rendering in the resulting document. 

Definition: `${html:<Field name>}`

### Sample Code

```
${html:Description}
${html:Custom Free Text}
```

> ℹ️ - When creating an Excel template document, use: `${html:Description}`
> ℹ️ - If the document's output format is HTML, use: `${wiki:Description}` instead

## JavaScript with Wiki or HTML

Xporter allows applying Wiki or HTML functions to the text rendered based on JavaScript.

For example, if the fields to be exported are configured to use the <span style="color: #222222">Default Text Renderer provided by Jira, </span><span style="color: #0d0d0d">you can format the field using JavaScript notation as explained </span>[<span style="color: #0d0d0d">here</span>](https://docs.getxporter.app/space/XPORTERCLOUD/460547/JavaScript)<span style="color: #0d0d0d">, and then apply the Wiki or HTML functions.</span>

<span style="color: #0d0d0d">Similarly, you can format fields that are configured to use the </span>[<span style="color: #0d0d0d">Wiki Markup Renderer</span>](https://confluence.atlassian.com/display/JIRA/Configuring+Renderers#ConfiguringRenderers-WikiStyleRenderer)<span style="color: #0d0d0d"> or an HTML renderer, such as the one provided by the </span>[<span style="color: #0d0d0d">JEditor plugin</span>](https://marketplace.atlassian.com/plugins/com.jiraeditor.jeditor)<span style="color: #0d0d0d">, using JavaScript. To achieve this, define the JavaScript function as a field in the template and specify the function to be applied to that field</span>

<span style="color: #222222"> Definition:</span>

`${wiki:%{<Javascript>}``}`

or

`${html:%{<Javascript>}``} `

Formatting the first word in the field "Description" to "Bold", "Italic" or to have a different text color (red in the examples) using HTML function:

```
${html:%{var t ='<b>'+'${Description}'.split(' ')[0] +'</b>'+'${Description}'.substr('${Description}'.indexOf(' ') + 1);t.toString();}}
${html:%{var t ='<i>'+'${Description}'.split(' ')[0] +'</i>'+'${Description}'.substr('${Description}'.indexOf(' ') + 1);t.toString();}} 
${html:%{var t ='<b>'+'<font color="Red">'+'${Description}'.split(' ')[0] +'</b>'+'</font>'+'${Description}'.substr('${Description}'.indexOf(' ') + 1);t.toString();}}
```

Formatting the first word in the field "Description" to "Bold", "Italic" or to have a different text color (red in the examples) using Wiki function:

```
${wiki:%{var t ='*'+'${Description}'.split(' ')[0] +'*'+' ${Description}'.substr('${Description}'.indexOf(' ') + 1);t.toString();}}
${wiki:%{var t ='_'+'${Description}'.split(' ')[0] +'_'+' ${Description}'.substr('${Description}'.indexOf(' ') + 1);t.toString();}}
${wiki:%{var t ='{color:red}'+'${Description}'.split(' ')[0] +'{color}'+' ${Description}'.substr('${Description}'.indexOf(' ') + 1);t.toString();}}
```


<details>
<summary>Support/Troubleshooting</summary>

If you have questions or technical issues, please [contact the Support team via the Customer Portal (Jira service management)](https://jira.getxray.app/servicedesk/customer/portal/2/user/login?destination=portal%2F2%2Fcreate%2F28) or [send us a message using the in-app chat](https://docs.getxporter.app/space/XPORTERCLOUD/18251779/In-App+Chat+Support).
</details>