Skip to content

Commit 0aca585

Browse files
committed
move to tiny mermaid instead (goes from 3mb to 1.7mb :/)
1 parent 315664f commit 0aca585

File tree

5 files changed

+2052
-1378
lines changed

5 files changed

+2052
-1378
lines changed

src/Elastic.Markdown/Assets/mermaid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'htmx-ext-head-support'
22
import 'htmx-ext-preload'
33
import 'htmx.org'
4-
import mermaid from 'mermaid/dist/mermaid.esm.min.mjs'
4+
import mermaid from '@mermaid-js/tiny/dist/mermaid.tiny'
55

66
var mermaidInitialize = function () {
77
mermaid.initialize({

src/Elastic.Markdown/_static/mermaid.js

Lines changed: 1972 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Elastic.Markdown/_static/mermaid.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)