Skip to content

Bugfix/word generation broken html - #70

Merged
jhosepmyr merged 3 commits into
developfrom
bugfix/word-generation-broken-html
Jul 10, 2026
Merged

Bugfix/word generation broken html#70
jhosepmyr merged 3 commits into
developfrom
bugfix/word-generation-broken-html

Conversation

@jhosepmyr

Copy link
Copy Markdown
Contributor

Description of Change

Section modified:

Motivation:


Type of Change

  • New section or subsection
  • Update to existing content
  • New diagram or image
  • Typo or writing correction
  • Incorrect data or information fix
  • Structure reorganization (no content change)
  • Asset change (image replacement)

Checklist Before Requesting Review

  • The PR targets develop (not main)
  • The branch name follows the convention feature/* or bugfix/*
  • Commits follow the Conventional Commits convention (feat:, fix:, docs:, etc.)
  • CHANGELOG.md has been updated with the change made
  • New images are placed in the correct assets/ subfolder
  • Image links in the README render correctly
  • Spelling of added or modified content has been reviewed
  • No generated files are included (.pdf, .docx, .html)

Screenshots or Evidence (optional)


Suggested Reviewers

jhosepmyr added 3 commits July 9, 2026 23:21
README.md relies heavily on inline HTML (tables, images, line breaks) that
pandoc's Markdown reader drops or mangles when writing to docx. Rendering
full HTML first with the same engine used for the PDF, then converting
that HTML to docx, preserves tables and images that were previously lost.
Defines branded heading styles (Title/H1-H4), a header, and a footer with
page numbering (Página X de Y), matching the PDF's A4 layout and margins.
Used as pandoc's --reference-doc when generating the Word document.
Wires the branded reference-doc into the pandoc conversion, generates a
native Word table of contents (--toc), and post-processes the docx to set
updateFields so Word refreshes the TOC and populates it automatically
when the file is opened, since pandoc does not set this by default.
@jhosepmyr
jhosepmyr merged commit 0314831 into develop Jul 10, 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