vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.26k stars 2.14k forks source link

Fix `vueRE` conflicting with `lineNoRE` #4247

Closed Heptazhou closed 1 month ago

Heptazhou commented 1 month ago

This resolves, e.g.:

```json-vue:line-numbers
{{ theme }}
and
````md
```json-vue:no-line-numbers
{{ theme }}
brc-dd commented 1 month ago

Fine with accepting this, but the line numbers will not be reliable if your string contains more than one line:

image image
Heptazhou commented 1 month ago

@brc-dd Exactly!

Since my config has a markdown: { lineNumbers: true }, *-vue:no-line-numbers helps turn off the broken line number.