Skip to content

Code blocks truncate earlier in v3.10.1 #68

Description

@denny0223

Thank you for the wrapping fix in #66. I noticed that code blocks now truncate slightly earlier.

In a 40-column window with the default two-space indent, run :MdRender toggle on:

```text
12345678901234567890123456789012345678
```

The 38-character line and its indent fit within 40 columns. The screenshots also include a paragraph to compare text wrapping.

v3.10.0 v3.10.1 v3.10.0 + #63
v3.10.0: paragraph overflows; code line is complete v3.10.1: paragraph fits; code line is truncated PR 63: paragraph fits; code line is complete

It seems the window-level width adjustment also affects code blocks, which already account for indentation. Would it make sense to keep the full width available to those blocks?

No activity

Activity on this issue will appear here.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions