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
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will try hooking the card-back-section as you have suggested though... :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.