Skip to content

Refine printed Markdown content rhythm - #333

Open
PathGao wants to merge 1 commit into
sftwrdotdev:masterfrom
PathGao:fix/print-content-rhythm
Open

Refine printed Markdown content rhythm#333
PathGao wants to merge 1 commit into
sftwrdotdev:masterfrom
PathGao:fix/print-content-rhythm

Conversation

@PathGao

@PathGao PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Fixes #332.

Adds print-only CSS for:

  • heading, paragraph, list, and blockquote paper spacing;
  • code-block boundaries while allowing long code to flow across pages;
  • image and table page-width constraints with basic spacing.

No interactive preview styles, printable table of contents, page headers/footers, or PDF renderer changes.

Validation:

  • npm run check
  • npm test (152 passing)
  • cargo test --manifest-path src-tauri/Cargo.toml (27 passing)
  • isolated macOS Markpad Print Test.app native print-preview smoke test with mixed Markdown fixture.

Depends on #331, continuing the linear chain.

@PathGao

PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator Author

@alecdotdev 这是 #331 后的下一条链式 PR,范围按 #332 收窄为 print-only CSS:纸面间距、代码块分页边界、图片/表格页宽与留白。未引入独立打印 DOM、页眉页脚、目录或自定义 PDF 渲染。独立 macOS release bundle 已通过系统 print-preview 验证。

@PathGao
PathGao force-pushed the fix/print-content-rhythm branch from dce5015 to 799fea7 Compare August 2, 2026 04:03
@PathGao
PathGao marked this pull request as ready for review August 2, 2026 06:33
@PathGao
PathGao force-pushed the fix/print-content-rhythm branch from 799fea7 to 971f962 Compare August 2, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refine printed Markdown spacing and block presentation

1 participant