Use of grave accent in level 2 headings causes rendering corruption
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):
Actual output (Markpad):
Steps to reproduce
- Save Markdown to file.
- 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
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.
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.