diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts
index ab31a700..27eb67a4 100644
--- a/docs/.vuepress/config.ts
+++ b/docs/.vuepress/config.ts
@@ -34,6 +34,8 @@ export default defineUserConfig({
define: {
__VUEPRESS_VERSION__: vuepress,
+ // debug hydration mismatch
+ // __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'true',
},
alias: {
diff --git a/docs/notes/theme/guide/custom/home.md b/docs/notes/theme/guide/custom/home.md
index e4d523e8..180894da 100644
--- a/docs/notes/theme/guide/custom/home.md
+++ b/docs/notes/theme/guide/custom/home.md
@@ -129,7 +129,8 @@ config:
**效果:**
:::demo-wrapper img no-padding
-
+
+
:::
### hero
@@ -433,7 +434,7 @@ config:
**效果:**
:::demo-wrapper img no-padding
-
+
:::
### text-image | image-text
diff --git a/plugins/plugin-md-power/src/node/container/codeTree.ts b/plugins/plugin-md-power/src/node/container/codeTree.ts
index 40924860..28233cad 100644
--- a/plugins/plugin-md-power/src/node/container/codeTree.ts
+++ b/plugins/plugin-md-power/src/node/container/codeTree.ts
@@ -26,6 +26,7 @@ import { removeLeadingSlash } from 'vuepress/shared'
import { findFile, readFileSync } from '../demo/supports/file.js'
import { createEmbedRuleBlock } from '../embed/createEmbedRuleBlock.js'
import { defaultFile, defaultFolder, getFileIcon } from '../fileIcons/index.js'
+import { cleanMarkdownEnv } from '../utils/cleanMarkdownEnv.js'
import { parseRect } from '../utils/parseRect.js'
import { resolveAttr, resolveAttrs } from '../utils/resolveAttrs.js'
import { stringifyAttrs } from '../utils/stringifyAttrs.js'
@@ -214,7 +215,7 @@ export function codeTreePlugin(md: Markdown, app: App, options: CodeTreeOptions
const fileTreeNodes = parseFileNodes(files)
return `${
renderFileTree(fileTreeNodes, icon)
- }${md.render(codeContent)}`
+ }${md.render(codeContent, cleanMarkdownEnv(env))}`
},
})
}
diff --git a/plugins/plugin-md-power/src/node/utils/resolveAttrs.ts b/plugins/plugin-md-power/src/node/utils/resolveAttrs.ts
index 262e614e..493885f8 100644
--- a/plugins/plugin-md-power/src/node/utils/resolveAttrs.ts
+++ b/plugins/plugin-md-power/src/node/utils/resolveAttrs.ts
@@ -25,6 +25,8 @@ export function resolveAttrs = Record
v = true
else if (v === 'false')
v = false
+ else if (v === '""' || v === '\'\'')
+ v = ''
attrs[camelCase(attr)] = v
info = info.slice(matched[0].length)