Closed jerrywu001 closed 1 year ago
You can write a custom plugin to do some stuff like this: https://github.com/brc-dd/sandpack-vitepress-demo
You can write a custom plugin to do some stuff like this: https://github.com/brc-dd/sandpack-vitepress-demo
thanks
I appreciate your help. I have written a plugin for vitepress. So we can use Sandpack as a directive in the markdown file.
Docs: https://vitepress-sandbox.js-bridge.com/get-started/introduction.html
Github: https://github.com/jerrywu001/vitepress-plugin-sandpack
@brc-dd
Describe the bug
online demo: https://stackblitz.com/edit/vitejs-vite-79ocfq?file=docs%2Findex.md
SandBox
.https://vue3-npm-template.netlify.app/get-started/introduction.html#demo
But actually:
Version
1.0.0-alpha.31
does not have this problem.This issue starts from
1.0.0-alpha.32
.See: https://github.com/vuejs/vitepress/commit/a684b67ec084fdc3b3a300ffbdd21e19fdcf7b1e#diff-caaa5859b69d40532a36e00cd217b000c7653293a148088a1dbc0275e8c56570
Because The value of the class of the pre-tag is truncated.
Reproduction
See: https://stackblitz.com/edit/vitejs-vite-79ocfq?file=docs%2Findex.md
Expected behavior
Expected to happen:
https://vue3-npm-template.netlify.app/get-started/introduction.html#demo
The issue starts from
1.0.0-alpha.32
.See: https://github.com/vuejs/vitepress/commit/a684b67ec084fdc3b3a300ffbdd21e19fdcf7b1e#diff-caaa5859b69d40532a36e00cd217b000c7653293a148088a1dbc0275e8c56570
Because The value of the class of the pre-tag is truncated.
System Info
Additional context
Version
1.0.0-alpha.31
does not have this problem.This issue starts from
1.0.0-alpha.32
.See: https://github.com/vuejs/vitepress/commit/a684b67ec084fdc3b3a300ffbdd21e19fdcf7b1e#diff-caaa5859b69d40532a36e00cd217b000c7653293a148088a1dbc0275e8c56570
Validations