Skip to content

Code block in markdown trims leading spaces #1633

Closed

Description

@nobu

For example:

Code snippet of C.

```
    foo();
    bar();
```

The document above is rendered as like:
Image

I expect that foo() at the first line is indented as same as bar() at the second line.

Activity

  1. st0012 commented on Apr 9, 2026

    @st0012
    Member

    Fixed by #1672

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions