Skip to content

Incorrect wrapping / centering #95

@DubbaThony

Description

@DubbaThony

Describe the bug
The wrapping and centering is incorrect. The output leaves space on left side, even if on right side the text clips (instead of wrapping).

To Reproduce
Steps to reproduce the behavior:

  1. Prepare markdown file with long code line and other line that should wrap correctly
  2. Open the file with the viewer.

Expected behavior
I should see entire plaintext (non code block) line wrapped, and the code block line overflow should be handled in some way (wrapped or horizontal scroll maybe?), and the padding on left shouldn't be there if there is insufficient space on right side.

Screenshots

Image

Device

  • OS: Windows 10
  • Version 21H2 LTSC
  • App Version v2.6.4

Additional context
minimal example that reproduces the issue for me:
(note the reg add line - issue goes away if you shorten that line)

# Portable Windows 10/11 on USB SSD via VHD Boot

A complete guide for creating a persistent, portable Windows installation on external USB SSD using VHD boot. This method bypasses the USB bus reset issue that normally prevents USB Windows installations.

---

## Prerequisites

Doesn't matter, for issue repro let's just add some long line code block

```batch
reg add "HKLM\OFFLINE_SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f
```

(edit: better trimmed screenshot)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions