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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

152 views 1 3
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