vuepress / ecosystem

Official plugins and themes for VuePress2
https://ecosystem.vuejs.press
MIT License
21 stars 26 forks source link

[Bug report] `@vuepress/plugin-shiki` when using diff notations, whether to enable line numbers affects the rendering effect #212

Closed typed-sigterm closed 1 day ago

typed-sigterm commented 2 days ago

Description

Only when line numbers are enabled, there is space between the notations + - and the code.

Reproduction

https://stackblitz.com/edit/vuepress-demo-13c7c4e?file=docs%2FREADME.md

Used Package Manager

npm

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (6) x64 AMD Ryzen 5 4500U with Radeon Graphics
    Memory: 1022.00 MB / 7.23 GB
  Binaries:
    Node: 20.10.0 - C:\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Local\pnpm\yarn.CMD
    npm: 10.2.3 - C:\nodejs\npm.CMD
    pnpm: 9.1.0 - ~\AppData\Local\pnpm\pnpm.CMD
    bun: Not Found
  Utilities:
    Git: 2.37.3.
  Browsers:
    Chrome: Not Found
    Edge: Chromium (126.0.2592.81), ChromiumDev (127.0.2610.3)
  npmPackages:
    @vuepress/bundler-vite: 2.0.0-rc.14 => 2.0.0-rc.14
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli: Not Found
    @vuepress/client: Not Found
    @vuepress/core: Not Found
    @vuepress/markdown: Not Found
    @vuepress/shared: Not Found
    @vuepress/utils: Not Found
    vue: ^3.4.29 => 3.4.31
    vue-router: Not Found
    vuepress: 2.0.0-rc.14 => 2.0.0-rc.14