hero_books: PDF export renders raw HTML instead of PDF #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
The
/pdf/{id}route in hero_books_ui renders the raw HTML source of the markdown page instead of converting it to an actual PDF document.Steps to Reproduce
make demoin hero_books<meta>,<div>, etc.) instead of a formatted PDFExpected
The PDF route should render the markdown content as a properly formatted PDF document.
Screenshot
URL:
localhost:8080/pdf/1174b68654ca2719shows raw HTML source code in the PDF viewer.Repo
lhumina_code/hero_books—crates/hero_books_ui/(the Bootstrap UI)Fixed in hero_books PR #81 (merged).
to_raw_url()auto-converts forge/src/branch/and GitHub/blob/URLs to raw