chore: use imported util fn
This commit is contained in:
parent
3d0bfd6c39
commit
0586fe7174
1 changed files with 2 additions and 1 deletions
|
|
@ -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 `<img src="${url}" data-origin="${href}" alt="${text}" onload="javascript:Docsify.util.image.onLoad(this)" onerror="javascript:Docsify.util.image.onError(this)"${attrs}>`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue