feat: optional kroki/plantuml svg caching (#2047)

* feat: Caching kroki svgs #2020
This commit is contained in:
Regev Brody authored and GitHub committed 2020-06-18 18:39:25 -04:00
1 parent e03a80dccc
commit 77086a6e0a
5 files changed
+41 -3

No files matched your search

@@ -116,7 +116,7 @@ module.exports = {
token = state.push('uml_diagram', 'img', 0)
// alt is constructed from children. No point in populating it here.
token.attrs = [ [ 'src', `${server}/${imageFormat}/${zippedCode}` ], [ 'alt', '' ], ['class', 'uml-diagram'] ]
token.attrs = [ [ 'src', `${server}/${imageFormat}/${zippedCode}` ], [ 'alt', '' ], ['class', 'uml-diagram prefetch-candidate'] ]
token.block = true
token.children = altToken
token.info = params