docs: adjust preloaded shiki languages [lunaria-ignore]

pull/4566/head
Divyansh Singh 7 months ago
parent 68b1bcc680
commit 809bb523b6

@ -26,7 +26,7 @@ export const shared = defineConfig({
math: true,
// Load these languages ahead of time for embedded code highlighting
// TODO: remove this when Shiki fixes markdown embedded language loading
languages: ['js', 'ts', 'html'],
languages: ['js', 'ts', 'html', 'vue-html', 'css', 'yaml', 'sh'],
codeTransformers: [
// We use `[!!code` in demo to prevent transformation, here we revert it back.
{

@ -211,7 +211,6 @@ const { hasSidebar } = useSidebar()
</script>
<template>
<div v-if="hasSidebar">Sólo visible cuando existe la barra lateral
</div>
<div v-if="hasSidebar">Sólo visible cuando existe la barra lateral</div>
</template>
```

Loading…
Cancel
Save