Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I display card Description in a different format

Paul O'Neill
Contributor
February 23, 2022

I have just discovered Mermaid for Markdown and so have set about building a Power-Up to render said markdown as an image on a card.

My thought was to let the user put the Markdown in the description like this:

```mermaid
sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail!
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!
```

I've looked at the documentation but I'm not sure which event to hook so I can retrieve the card Description and then render the image in an iFrame.

I was thinking card-detail-badges or maybe format-url... Does anyone have an recommendations?

TIA

Paul

1 answer

0 votes
Michael Pryor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 24, 2022

Power-Ups get a section on the card back that you could control. It wouldn’t change how the description was rendered but below it on the card back you could draw whatever you wanted in that section. 

Paul O'Neill
Contributor
February 24, 2022

Thanks @Michael Pryor , sounds like I don't really understand the anatomy of a card from a developer perspective.

Does such a thing exist in the documentation anywhere?

Paul O'Neill
Contributor
February 24, 2022

I will try hooking the card-back-section as you have suggested though... :D

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events