Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

[Bug] GFM Callout blocks overflow vertical height and break layout in single-view render mode

Open jara505 opened this issue 2 months ago • 0 comments

Markpad version

2.7.4

How did you install it?

Linux — AppImage

OS and version

CachyOS - BSPWM

What happens, and what you expected instead

What happened:

When using Markpad in single-view render mode (toggling from the single-file editor to the preview screen using the Ctrl + E shortcut, without split-pane view), GitHub Flavored Markdown (GFM) callout blocks (e.g., > [!TIP], > [!NOTE]) suffer from a height calculation bug. The left vertical border and the callout's bounding box stretch down abnormally, covering subsequent code blocks and text elements.

What I expected :

The callout container should wrap its content tightly and accurately (just like it correctly does in split-pane mode), without breaking the vertical flow of the document.

Steps to reproduce

  1. Open a Markdown file in Markpad using single-file edit mode (no split view).

  2. Add a GFM callout block. example: > [!TIP]

  3. Press Ctrl + E to toggle to single-view render mode (preview).

  4. Observe how the callout box vertically overflows and overlaps the rest of the document.

The Markdown that triggers it

> [!TIP] Title Example
> This is a test content inside the callout block that triggers the vertical height overflow bug when toggling view with Ctrl + E.

Screenshots, and anything else

Image

jara505 avatar Sep 27 '26 04:09 jara505