Bug: Header text clipping/overflow in PDF export
Title: Bug: Header text clipping/overflow in PDF export
Description:
There is a rendering discrepancy between the editor view and the exported PDF. Long words in H1 headers (e.g., "IMPLEMENTASI") are being clipped/cut off on the left margin in the PDF output, while they appear correctly in the Markpad editor.
Steps to Reproduce:
Create a markdown file with a long word in an H1 header (e.g., # IMPLEMENTASI).
Export the file to PDF.
Open the PDF and observe the left margin.
Expected Behavior:
The text should be fully contained within the PDF page margins, matching the editor's layout or scaling down if necessary.
Actual Behavior:
The beginning of the word is cut off (e.g., "IMPLEMENTASI" becomes "...LEMENTASI").
Environment:
OS: Windows (based on the file path in screenshot)
App: Markpad (Tauri-based)
Screenshot:
Have the same issue; it seems like a white rectangle is hiding part of the text:
seems solved in 3.6.11
Several changes have landed here since: v2.6.4→2.6.5 added overflow-wrap: anywhere so long words break instead of overflowing, and #329/#333/#359 reworked the print layout (page margins moved onto the document body, tables and images constrained, spacing tightened for paper).
I can't reproduce the original from macOS — the Windows WebView2 print pipeline is a different renderer, and I can't account for text being clipped on the left specifically. Would you be able to export a PDF from a current build and say whether it still happens?
I tested with 2.7.3 on windows 10 and it seems OK. Thanks.