diff --git a/src/content/docs/en/guides/markdown-content.mdx b/src/content/docs/en/guides/markdown-content.mdx index cc2347e8961ed..e5ee46a8d405d 100644 --- a/src/content/docs/en/guides/markdown-content.mdx +++ b/src/content/docs/en/guides/markdown-content.mdx @@ -355,6 +355,12 @@ export default defineConfig({ // Note: Shiki has countless langs built-in, including .astro! // https://shiki.style/languages langs: [], + // Add custom aliases for languages + // Map an alias to a Shiki language ID: https://shiki.style/languages#bundled-languages + // https://shiki.style/guide/load-lang#custom-language-aliases + langAlias: { + cjs: "javascript" + }, // Enable word wrap to prevent horizontal scrolling wrap: true, // Add custom transformers: https://shiki.style/guide/transformers