Add patch for Mermaid support

This commit is contained in:
Benoit S 2021-08-31 20:01:54 +09:00
parent 284af08408
commit bcc1f29898

View file

@ -25,6 +25,7 @@ extra_css:
extra_javascript: extra_javascript:
- https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js - https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js
- javascripts/tables.js - javascripts/tables.js
- https://unpkg.com/mermaid/dist/mermaid.min.js
markdown_extensions: markdown_extensions:
- toc: - toc:
@ -39,10 +40,19 @@ markdown_extensions:
- abbr - abbr
- pymdownx.snippets - pymdownx.snippets
- pymdownx.highlight - pymdownx.highlight
- pymdownx.superfences - pymdownx.superfences:
# make exceptions to highlighting of code:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:mermaid2.fence_mermaid
plugins: plugins:
- git-revision-date - git-revision-date
- mermaid2:
arguments:
theme: 'dark'
extra: extra:
social: social: