@ -1,6 +1,6 @@
# VitePress 📝💨
[](https://github.com/vuejs/vitepress/actions)
[](https://github.com/vuejs/vitepress/actions/workflows/test.yml)
[](https://www.npmjs.com/package/vitepress)
[](https://nightly.akryum.dev/vuejs/vitepress)
[](https://chat.vuejs.org)
@ -311,21 +311,9 @@
.vp-doc [class*='language-'] pre,
.vp-doc [class*='language-'] code {
/*rtl:ignore*/
direction: ltr;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
.vp-doc [class*='language-'] pre {
@ -80,7 +80,13 @@ export async function highlight(
classActivePre: 'has-focused-lines'
}),
transformerNotationHighlight(),
transformerNotationErrorLevel()
transformerNotationErrorLevel(),
{
name: 'vitepress:add-dir',
pre(node) {
node.properties.dir = 'ltr'
]
const vueRE = /-vue(?=:|$)/