Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Use of grave accent in level 2 headings causes rendering corruption

Open mrsilver76 opened this issue 2 months ago • 2 comments

Markpad version

2.7.6

How did you install it?

Windows — installer (Markpad_…_setup.exe)

OS and version

Windows 11 25H2

What happens, and what you expected instead

When using grave accents for pre-formatted text in level 2 headings, Markpad corrupts the output.

[!NOTE] The issue may also happen in other level headings, I've not tested.

Expected output (Visual Studio code):

Image

Actual output (Markpad):

Image

Steps to reproduce

  1. Save Markdown to file.
  2. Open in Markpad.

The Markdown that triggers it

lorem ipsum dolor sit amet consectetur adipiscing elit irure ducimus excepteur ut repellendus et quo eiusmod in maxime voluptas est in est veniam et in fugiat omnis nihil rerum blanditiis in sed dolore dolores magna molestias ducimus tempor nulla tempore sint possimus similique exercitation qui excepturi et omnis occaecat at

## Officia cillum (animi `exercitation illum`: incididunt fuga amet excepteur `quo`. Irure ex nisi repellendus et laborum enim pariatur)

Rerum et cumque qui similique facilis in sunt sit minim reprehenderit soluta quis. Laborum duis ea assumenda reprehenderit facere vel similique occaecat in laborum. Veniam temporibus autem aliquip nobis iusto.

Screenshots, and anything else

No response

mrsilver76 avatar Sep 25 '26 18:09 mrsilver76

It appears to be a problem only when the heading text is wrapped.

For example:

## Hello `there` one two three

will render just fine until you resize Markpad to a narrow enough width for it to start wrapping.

Hope that helps.

mrsilver76 avatar Sep 25 '26 18:09 mrsilver76

Thanks for the repro. This is the same bug as #791: headings were flex containers, so each text run and inline code became its own flex item and got squeezed when the heading wrapped. #792 removed that on master, and the fix will ship in the next release after 2.7.6.

PathGao avatar Sep 26 '26 04:09 PathGao