You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I want to add any of the above panels when pasting markdown to editor, is this possible?
e.g. I want to change this note to be a confluence panel note:
### I'm a Markdown file
Some more markdown text...
> NOTE: Hello, I'm a nice note :)
What should I paste to achieve this?
It turns out that it's possible in the following implementation:
1. Script must look for some defined custom structure inside our markdown file, e.g.
!!! tip useful-tip
block of text that is in the tip macro
2. We change this to macro body written in html, e.g. (haven't tested)
<ac:parameter ac:name="title">useful tip</ac:parameter>
<ac:parameter ac:name="body">block of text that is in the tip macro</ac:parameter>
And send to confluence space as a new page or update the existing one.
If someone reads this, it also works (lack of documentation!!!) for fenced code blocks and other macros, just change: