hedgedoc/public
David Mehren b45b8b9c0d
Lazy-load mermaid
This commit moves the import of mermaid into a `require.ensure` block,
that is only executed when a mermaid diagram is actually present
in a note. Webpack automatically splits the library into a separate
chunk and loads that on demand.

To ensure that mermaid code-blocks are not treated as normal
code-blocks while the chunk is loading, a corresponding check is added
to `finishView`.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-06-11 09:26:03 +02:00
..
banner
css
docs Add release notes for CSP changes 2021-06-07 22:57:12 +02:00
fonts
icons
js Lazy-load mermaid 2021-06-11 09:26:03 +02:00
uploads
vendor Load abcjs from npm package 2021-06-07 20:59:37 +02:00
views
.eslintrc.js
default.md
screenshot.png