From 891a5d61ab035a85bc6a3a9512040e9fb8795b7d Mon Sep 17 00:00:00 2001 From: qiwang067 Date: Thu, 23 Jun 2022 21:14:08 +0800 Subject: [PATCH] udpate --- docs/index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index 132cc87..0ca52f4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -26,7 +26,17 @@ noData:'找不到结果', paths:'auto', depth:6 - } + }, + plugins: [ + function(hook, vm) { + hook.beforeEach(function(content) { + // 每次开始解析 Markdown 内容时调用 + // 将所有../img替换成img + // https://github.com/docsifyjs/docsify/issues/936 + return content.replace(/..\/img/g, "img"); + }) + } + ], }