Skip to content

Improve code block rendering in PDF exports (handle overflow) #28

@schuyler

Description

@schuyler

Problem

Code blocks with long lines get cut off when printing to PDF. This makes exported PDFs unusable for sharing code that has horizontal overflow.

Solution

Improve overflow handling for code blocks in PDF exports with better CSS/print styling.

Source

Based on PR #1349 from MacDownApp/macdown by @falkorichter
MacDownApp/macdown#1349

Priority

HIGH - PDF export is important for documentation and sharing, and truncated code is a major usability issue.

Implementation Notes

  • Review CSS/print styling changes needed for proper code block overflow handling
  • Test with various code block lengths and content types
  • Ensure readability is maintained in printed output

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloned-prenhancementNew feature or requestexportPDF/HTML exporthighImportant for release, significant impactv0.1Must have for v0.1 release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions