For support mermaid in gh-pages
Add follow tmplate in _includes/head-custom.html
.
It depends on your Jekyll theme.
If you don't use Jekyll with GH Pages, You should find the best way with your Site generator.
<script
type="module"
src="https://cdn.jsdelivr.net/npm/github-pages-mermaid-plugin@1/libs/gh-pages-mermaid.mjs"
defer
></script>
All code write with ESNext, the plugin not working in lower verion browser.
The cost of building, compiling and publishing is too high and will not be considered at this stage.
- [ ] custom config by the query of
import.meta.url