diff --git a/src/core/render/compiler.js b/src/core/render/compiler.js index 1267fd1..967d16e 100644 --- a/src/core/render/compiler.js +++ b/src/core/render/compiler.js @@ -6,6 +6,7 @@ import {slugify} from './slugify' import {emojify} from './emojify' import {isAbsolutePath, getPath, getParentPath} from '../router/util' import {isFn, merge, cached, isPrimitive} from '../util/core' +import image from '../util/image' // See https://github.com/PrismJS/prism/pull/1367 import 'prismjs/components/prism-markup-templating' @@ -299,7 +300,7 @@ export class Compiler { url = getPath(contentBase, getParentPath(router.getCurrentPath()), href) } - window.Docsify.util.image.increaseLoadingImageCount() + image.increaseLoadingImageCount() return `${text}` }