hedgedoc/public/js
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
..
lib Load inline-attachment without script-loader 2021-06-07 20:59:35 +02:00
cover.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
extra.js Lazy-load mermaid 2021-06-11 09:26:03 +02:00
history.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
htmlExport.js Use JavaScript Standard Style (part 2) 2017-03-09 02:41:05 +08:00
index.js Load ot without script-loader 2021-06-07 20:59:37 +02:00
locale.js Extract list of supported languages in separate file 2021-04-26 21:45:31 +02:00
mathjax-config-extra.js Fix MathJax config not being picked up 2017-10-22 02:48:24 +02:00
pretty.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
render.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
reveal-markdown.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
slide.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
utils.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00