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

* feat: Caching kroki svgs #2020
This commit is contained in:
Regev Brody
2020-06-19 01:39:25 +03:00
committed by GitHub
parent e03a80dccc
commit 77086a6e0a
5 changed files with 41 additions and 3 deletions

View File

@@ -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