Repository navigation
fix: preserve inline formatting in promoted document titles - #20
leonardosalasd merged 2 commits into
Conversation
|
Thanks — the shape of this is right. A plain string for Two things I would like changed. Parse the title with the same pipeline as the body. Citations are in the same boat, since Keep the running header plain. Related, and this one is mine rather than yours: inline code in a title renders at the 9pt hard-coded in One note that is not a change request. |
|
Addressed in 490d749. Title extraction now shares the body parser/plugin configuration and rendering/citation post-processing, including document reference-link definitions. Added regression coverage for strike, math, citations, plain metadata and reference links. The templates keep Validation: all 240 tests pass on Python 3.10 and 3.12; Ruff lint/format and whitespace checks pass. Compiled all seven templates with strike/math/citation titles and a bibliography. For each template, compared running-header text/font/size/style against a plain-title PDF, checked metadata, verified cover code matches the title size, and confirmed body code stays small. Visually checked the academic cover and running header. The dependency floor is unchanged, as you noted that you are handling it. Thanks for the concrete review examples. |
Closes #17.
The first H1 is promoted into the template title and removed from the body. Previously,
# **Document Title**therefore displayed literal Markdown markers, even though ordinary body headings rendered correctly.Parse the promoted title into plain text for PDF metadata and rendered inline content for display in all seven built-in templates. Bold, italic, nested emphasis, inline code, and escaped literal characters are covered. Explicit CLI/front-matter title overrides remain literal strings. Custom
.typtemplates retain the existing string-only title contract and receive the cleaned title, without a new required argument.Validation:
Prepared and validated with OpenAI Codex under the account owner's direction.