0

tl;dr For a Markdown page on Github, how can I specify a styling sheet and source script for a mermaid diagram?

I'm looking through mermaid's Flowchart documentation and foud a lot of cool features like being able to specify a callback. However, I'm struggling to figure out how one would go about doing this in Markdown.

I've figured out how to change the theme from this question, and am using inline classDef for styling as explained in the docs, but still not sure how I'd go about using a custom styling sheet and defining a callback that's not just a hyperlink.

Chris
  • 112,704
  • 77
  • 249
  • 231
Olshansk
  • 5,296
  • 7
  • 28
  • 41

1 Answers1

0

You probably cannot.

GitHub strips most styling out of its README files. I would be very surprised if there were a special case permitting custom styling of Mermaid diagrams.

Chris
  • 112,704
  • 77
  • 249
  • 231