Skip to content

Sanitize markdown content before generating PDFs - #16

Merged
rafageist merged 3 commits into
masterfrom
develop
Feb 7, 2026
Merged

Sanitize markdown content before generating PDFs#16
rafageist merged 3 commits into
masterfrom
develop

Conversation

@rafageist

Copy link
Copy Markdown
Member

This pull request introduces a new function to sanitize markdown content before generating PDFs, improving compatibility and presentation by handling embedded images. The most important changes are grouped below:

Markdown sanitization improvements:

  • Added the sanitize_markdown_for_pdf function to remove Obsidian-style embedded images and convert remote images to markdown links in scripts/build_pdf.py.
  • Integrated the sanitize_markdown_for_pdf function into the PDF build process by applying it to the combined markdown content in the main function.

@rafageist rafageist self-assigned this Feb 7, 2026
@rafageist
rafageist merged commit c53b091 into master Feb 7, 2026
2 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