mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
fix: lint
This commit is contained in:
@@ -177,7 +177,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
const startTime = performance.now()
|
||||
renderEnv = { source: content, file: currentFile.value, renderCount: renderCount++ }
|
||||
renderEnv = { tokens: [], source: content, file: currentFile.value, renderCount: renderCount++ }
|
||||
try {
|
||||
renderContent.value = markdown.render(content, renderEnv)
|
||||
} catch (error: any) {
|
||||
|
||||
@@ -54,12 +54,11 @@ export default {
|
||||
}
|
||||
|
||||
const processImg = async (tokens: Token[]) => {
|
||||
for (let token of tokens) {
|
||||
for (const token of tokens) {
|
||||
if (token.children) {
|
||||
await processImg(token.children)
|
||||
}
|
||||
|
||||
|
||||
if (token.tag === 'img' && token.attrGet(ctx.constant.DOM_ATTR_NAME.LOCAL_IMAGE)) {
|
||||
const srcAttr = token.attrGet('src')
|
||||
const originSrc = token.attrGet(ctx.constant.DOM_ATTR_NAME.ORIGIN_SRC)
|
||||
|
||||
Reference in New Issue
Block a user