upd: 调整代码

This commit is contained in:
purocean
2021-11-04 19:18:20 +08:00
parent 9bac08261d
commit 09f203a149
@@ -18,14 +18,14 @@ export default {
if (fm.attributes && typeof fm.attributes === 'object') {
attributes = fm.attributes
}
return render.call(md, src, { ...env, bodyBegin, attributes })
} catch (error) {
console.error(error)
}
logger.debug('render', bodyBegin, attributes)
return render.call(md, src, { ...env, bodyBegin, attributes })
Object.assign(env, { bodyBegin, attributes })
return render.call(md, src, env)
}
const firstRule = (md.block.ruler as any).__rules__[0]