From 94026da34c4e754d82216d6ff40f2112e60a949f Mon Sep 17 00:00:00 2001 From: "jokcy.lou" Date: Mon, 26 Jun 2023 12:25:38 +0800 Subject: [PATCH] clone ast to prevent later process --- docs/_component/editor.client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_component/editor.client.js b/docs/_component/editor.client.js index e5832b534..daf9a350c 100644 --- a/docs/_component/editor.client.js +++ b/docs/_component/editor.client.js @@ -37,7 +37,7 @@ function useMdx(defaults) { const file = new VFile({basename, value: config.value}) const capture = (name) => () => (tree) => { - file.data[name] = tree + file.data[name] = structuredClone(tree) } const remarkPlugins = []