Skip to content

Commit dbe9f44

Browse files
authoredJun 26, 2023
Fix playground AST views w/ clone
Closes GH-2315. Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent 7504cfb commit dbe9f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/_component/editor.client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function useMdx(defaults) {
3737
const file = new VFile({basename, value: config.value})
3838

3939
const capture = (name) => () => (tree) => {
40-
file.data[name] = tree
40+
file.data[name] = structuredClone(tree)
4141
}
4242

4343
const remarkPlugins = []

1 commit comments

Comments
 (1)

vercel[bot] commented on Jun 26, 2023

@vercel[bot]

Successfully deployed to the following URLs:

mdx – ./

mdx-git-main-mdx.vercel.app
v2.mdxjs.com
mdx-mdx.vercel.app
mdxjs.com

Please sign in to comment.