Skip to content

Fix PDF code block styling and document PDF generation#7

Merged
kraker merged 1 commit into
mainfrom
pdf-support
Apr 1, 2026
Merged

Fix PDF code block styling and document PDF generation#7
kraker merged 1 commit into
mainfrom
pdf-support

Conversation

@kraker
Copy link
Copy Markdown
Owner

@kraker kraker commented Apr 1, 2026

Summary

  • Override readthedocs theme CSS that applied red color, 75% font-size, and nowrap to <code> elements inside <pre> blocks — this was breaking code block rendering in the PDF
  • Add Pygments syntax highlighting token colors (comments, keywords, builtins, strings, etc.)
  • Document PDF build command and WeasyPrint system deps in README.md and CLAUDE.md

Follow-up to #5 and #6.

Test plan

  • CI build passes
  • Code blocks in PDF render with monospace font, proper spacing, and syntax colors
  • README documents ENABLE_PDF_EXPORT=1 uv run mkdocs build

🤖 Generated with Claude Code

- Override readthedocs theme CSS that applied red color, 75% font-size,
  and nowrap to code elements inside pre blocks
- Add Pygments syntax highlighting token colors for PDF output
- Document PDF build command in README.md and CLAUDE.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kraker kraker merged commit dcb63c7 into main Apr 1, 2026
4 checks passed
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.

1 participant