Transformers pipeline content

I'd like to intercept content before it is displayed, change some keywords and finally render it. Basicly its just to tranform the content before its printed. I have been looking for any sample code, or documentation about it, however I can not find any information on this at all.

Someone point me to the right place? Has anyone coded anything like this?

The only think I found is that confluence provide transformers pipeline but there is nothing about it.


2 answers

I can think of a way to do this by writing a macro and adding the macro to your page decorator. For example, rather than just having a line like:


In your decorator, you could pass $body to a macro and print the results. The macro would do the transformation. This is just off the top of my head. There are probably much better ways to do it.

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
Published 10 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

92 views 2 4
Read article

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