Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code block content is trimmed #2988

Closed
4 tasks done
Akryum opened this issue Sep 19, 2023 · 0 comments
Closed
4 tasks done

Code block content is trimmed #2988

Akryum opened this issue Sep 19, 2023 · 0 comments
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@Akryum
Copy link
Member

Akryum commented Sep 19, 2023

Describe the bug

Writing

```
  A-->B;
  A-->C;
  B-->D;
  C-->D;
```

Should keep the indentation but the content is trimmed so it render like:

```
A-->B;
  A-->C;
  B-->D;
  C-->D;
```

image

Reproduction

https://stackblitz.com/edit/vite-g3gqwo?file=docs%2Fexample.md

Expected behavior

Doesn't trim the content and render indentation on the first line correctly.

image

System Info

System:
    OS: Linux 6.4 Fedora Linux 38 (Workstation Edition)
    CPU: (24) x64 AMD Ryzen 9 3900XT 12-Core Processor
    Memory: 27.51 GB / 62.69 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 20.6.1 - ~/.local/share/pnpm/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.1/bin/yarn
    npm: 9.8.1 - ~/.local/share/pnpm/npm
    pnpm: 8.7.6 - ~/.local/share/pnpm/pnpm
  Browsers:
    Chrome: 117.0.5938.62
  npmPackages:
    vitepress: ^1.0.0-rc.14 => 1.0.0-rc.14

Additional context

No response

Validations

@Akryum Akryum added the bug: pending triage Maybe a bug, waiting for confirmation label Sep 19, 2023
@brc-dd brc-dd closed this as completed in 5bb6bb0 Sep 19, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

1 participant