Issue with HTML tag using documentation theme and user macro

Hello all -

I'm attempting to customize my header using the Documentation theme, and I'm having a problem with wiki markup that uses HTML/javascript.

For demo purposes, here is my User Macro (let's call it {foo})

function test(name){
    alert('hello ' + name);

<span style="background: green; color: white; padding: 4px 12px; \-moz-border-radius:4px; \-webkit-border-radius: 4px;">GREEN


<input value="ButtonName" type="button" onclick="test('hooray')" >


The issue is, that when customizing the Documentation theme by simply calling {foo} in the header, the contents of the <script> entity are spammed to my Confluence page!

The javascript works, but unfortunately my page header now has the function definition echo'd as text... not exactly what I'm going for :P

Any help is appreciated.... and thank you!

- js

1 answer

*bump* ....

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

184 views 1 17
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