File tree Expand file tree Collapse file tree
website/assets/javascripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,7 +53,11 @@ markdown_extensions:
5353 anchor_linenums : true
5454 - pymdownx.inlinehilite
5555 - pymdownx.snippets
56- - pymdownx.superfences
56+ - pymdownx.superfences :
57+ custom_fences :
58+ - name : mermaid
59+ class : mermaid
60+ format : !!python/name:pymdownx.superfences.fence_code_format
5761 - pymdownx.tabbed :
5862 alternate_style : true
5963 - pymdownx.tasklist :
@@ -67,3 +71,7 @@ plugins:
6771 enable_creation_date : true
6872 - minify :
6973 minify_html : true
74+
75+ extra_javascript :
76+ - https://unpkg.com/mermaid@11.4.1/dist/mermaid.min.js
77+ - assets/javascripts/mermaid-init.js
Original file line number Diff line number Diff line change 1+ document$ . subscribe ( function ( ) {
2+ mermaid . initialize ( { startOnLoad : false , theme : "default" } ) ;
3+ mermaid . run ( { querySelector : ".mermaid" } ) ;
4+ } ) ;
You can’t perform that action at this time.
0 commit comments