Can you use a user macro inline in 5.1?

I have a macro that can be used in a wiki markup block like this:

This is one line {mymacro}some words{mymacro} and everything continues.

It outputs this is a single line, with the macro getting to do its stuff to "some words".

But when I use the macro in the normal way, via the macro browser, the editor ends up putting the macro on its own llne , so it ends up like this:

This is one line
some words
and everything continues.

Is there a way to insert a macro in Confluence 5.1 so new paragraphs aren't created?

2 answers

1 accepted

Found the answer -- the user needs to set it to display inline. There's a little image when you select a macro in the editor, and it has two icons that I didn't understand -- one sets the macro to be inline, the other sets it block. There's no way to programatically declare that the macro is inline.

I am using the cloud version and can't find the icons or any way to change this - screenshot anyone?

Steven Behnke Community Champion Jan 20, 2015

To answer this question, there's no way a Cloud instance can utilize Usermacros, since they are restricted functions on Cloud.

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

233 views 1 18
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