Repository navigation
fix(filesystem): render markdown emphasis in PDF export - #5540
Merged
MagMueller merged 3 commits intoAug 27, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
MagMueller
force-pushed
the
fix/pdf-markdown-formatting
branch
from
August 27, 2026 07:34
6cee364 to
a8f48ff
Compare
Escape first to keep the ReportLab parse fix, then convert bold/italic/code/bullets to RML so write_file PDFs match the documented markdown contract.
MagMueller
force-pushed
the
fix/pdf-markdown-formatting
branch
from
August 27, 2026 23:28
a8f48ff to
f168606
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
write_filetells the model that PDF content is markdown, but after #5502 only#/##/###headings were styled. Bold, italic, inline code, and bullets printed as literal**syntax**.Keep the #5502 escape-first behavior (raw ReportLab markup cannot be restored — that is the parse bug). After
html.escape, convert a small markdown subset to RML. Underscores stay literal sosnake_casenames are not italicized.*is only emphasis when it actually wraps a span —2 * 3 * 4and globs are left alone. Fenced blocks skip inline conversion so shell backticks survive.Heading offsets are shared with
DocxFilevia_split_heading.Fixes #5538
Summary by cubic
Render markdown emphasis in PDF exports from
write_fileso PDFs match the documented markdown contract. Previously only#/##/###headings rendered; now bold, italic, inline code, and bullets format correctly while we keep the escape-first fix to avoidReportLabparse issues.**bold**,*italic*,`inline`, and list bullets (-/*) to RML; code fences bypass inline conversion; underscores never italicize.*.txt,**/foo/**,2 * 3 * 4); inline code protects emphasis markers.DocxFileto align#/##/###levels; add tests for emphasis, bullets, fences, globs, and edge cases.Written for commit f168606. Summary will update on new commits.