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