Groups
Sign in
Groups
gitit-discuss
Conversations
About
Send feedback
Help
How to embed Mermaid diagrams in Gitit pages?
22 views
Skip to first unread message
capn....@gmail.com
unread,
Jun 25, 2023, 6:36:18 AM
6/25/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gitit-discuss
Has anyone figured out how to embed
Mermaid
diagrams into their Gitit pages and have them rendered properly?
capn....@gmail.com
unread,
Jun 25, 2023, 10:39:34 AM
6/25/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gitit-discuss
This worked:
Aha! I got it. I had to make the following change to my local `templates/
pages.st
` file:
% diff -c ~/prj/gitit/data/templates/
page.st
~/Documents/gitit/templates/
page.st
*** /Users/dbanas/prj/gitit/data/templates/
page.st
2022-12-23 11:41:20.000000000 -0500
--- /Users/dbanas/Documents/gitit/templates/
page.st
2023-06-25 10:17:55.000000000 -0400
***************
*** 43,47 ****
--- 43,51 ----
$javascripts$
$expire()$
$getuser()$
+ <script type="module">
+ import mermaid from '
https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs
';
+ mermaid.initialize({ startOnLoad: true });
+ </script>
</body>
</html>
Reply all
Reply to author
Forward
0 new messages