From f5a1fb6af290eafddb5ef22f059de6f0baffc94b Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Mon, 25 Mar 2024 17:48:05 +0800 Subject: [PATCH] chore: markdown plugin --- docs/.vuepress/markdown/img-add-attrs.js | 3 ++- docs/tutorial/vue3-pinia.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/.vuepress/markdown/img-add-attrs.js b/docs/.vuepress/markdown/img-add-attrs.js index 16d8daeed..bbe687008 100644 --- a/docs/.vuepress/markdown/img-add-attrs.js +++ b/docs/.vuepress/markdown/img-add-attrs.js @@ -40,7 +40,7 @@ function addLoadingAttr(attribs) { */ function matchSrc(src) { return typeof src === 'string' - ? src.indexOf('qiniu-web-assets.dcloud.net.cn') > -1 + ? (src.indexOf('qiniu-web-assets.dcloud.net.cn') > -1 || src.indexOf('web-ext-storage.dcloud.net.cn') > -1) : false; } @@ -61,6 +61,7 @@ function replaceHTML(token, replace, env) { const htmlparser = require('htmlparser2'); const serializer = require('dom-serializer'); const dom = new htmlparser.parseDocument(token.content, { + lowerCaseTags: false, recognizeCDATA: true, recognizeSelfClosing: true, }); diff --git a/docs/tutorial/vue3-pinia.md b/docs/tutorial/vue3-pinia.md index f50f9ceb2..b14946209 100644 --- a/docs/tutorial/vue3-pinia.md +++ b/docs/tutorial/vue3-pinia.md @@ -4,7 +4,7 @@ > uni-app 内置了 [Pinia](https://pinia.vuejs.org/zh/index.html) 。Vue 2 项目暂不支持 -> 使用 `HBuilder X` 不需要手动安装,直接使用即可。使用 `CLI` 需要手动安装,执行 `yarn add pinia@2.0.33` 或 `npm install pinia@2.0.33`。 +> 使用 `HBuilder X` 不需要手动安装,直接使用即可。使用 `CLI` 需要手动安装,执行 `yarn add pinia@2.0.36` 或 `npm install pinia@2.0.36`。 ### Pinia 是什么? -- GitLab