diff --git a/app/src/modules/docs/components/markdown.vue b/app/src/modules/docs/components/markdown.vue index ffee2a5c27..27cea896ac 100644 --- a/app/src/modules/docs/components/markdown.vue +++ b/app/src/modules/docs/components/markdown.vue @@ -102,7 +102,8 @@ export default defineComponent({ pageClass.value = attributes?.pageClass; - const htmlString = md.render(markdown); + // Un-escape zero-width characters to allow breaking up character sequences automatically replaced by vite + const htmlString = md.render(markdown).replaceAll('\\u200b', '\u200b'); html.value = htmlString; diff --git a/docs/guides/displays.md b/docs/guides/displays.md index 84fb4fe17a..71ace0520f 100644 --- a/docs/guides/displays.md +++ b/docs/guides/displays.md @@ -121,6 +121,7 @@ export default { nodeResolve(), commonjs(), replace({ + 'process\u200b.env.NODE_ENV': JSON.stringify('production'), preventAssignment: true, }), terser(), diff --git a/docs/guides/interfaces.md b/docs/guides/interfaces.md index 3d8f45bc33..28fb89e48a 100644 --- a/docs/guides/interfaces.md +++ b/docs/guides/interfaces.md @@ -112,6 +112,7 @@ export default { nodeResolve(), commonjs(), replace({ + 'process\u200b.env.NODE_ENV': JSON.stringify('production'), preventAssignment: true, }), terser(), diff --git a/docs/guides/layouts.md b/docs/guides/layouts.md index f152e4b5af..91433a9cfb 100644 --- a/docs/guides/layouts.md +++ b/docs/guides/layouts.md @@ -154,6 +154,7 @@ export default { nodeResolve(), commonjs(), replace({ + 'process\u200b.env.NODE_ENV': JSON.stringify('production'), preventAssignment: true, }), terser(), diff --git a/docs/guides/modules.md b/docs/guides/modules.md index e7dec96cb0..95272732d3 100644 --- a/docs/guides/modules.md +++ b/docs/guides/modules.md @@ -154,6 +154,7 @@ export default { nodeResolve(), commonjs(), replace({ + 'process\u200b.env.NODE_ENV': JSON.stringify('production'), preventAssignment: true, }), terser(),