From dbe9f44b98a1a4127d71f3a0068273da490e38c1 Mon Sep 17 00:00:00 2001 From: JokcyLou Date: Mon, 26 Jun 2023 15:15:25 +0800 Subject: [PATCH] Fix playground AST views w/ clone Closes GH-2315. Reviewed-by: Titus Wormer --- 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 = []