News for hackers. Stuff that matters.
Re:Quarkdown: A modern Markdown-based typesetting system by promiseofbeans on Tuesday June 03, 2025 @05:12AM (#44167960)
WEasyPrint is great for generating invoices from html!

https://weasyprint.org/

Also the only good implementation of web layout/rendering I've seen done in python.

Re:Quarkdown: A modern Markdown-based typesetting system by skwee357 on Tuesday June 03, 2025 @06:15AM (#44168332)
Whats the difference between them and running a headless chrome docker container?
Re:Quarkdown: A modern Markdown-based typesetting system by istjohn on Tuesday June 03, 2025 @07:30AM (#44168839)
WEasyPrint's Github:

> From a technical point of view, WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing. WeasyPrint is free software made available under a BSD license.

> It is based on various libraries but not on a full rendering engine like WebKit or Gecko. The CSS layout engine is written in Python, designed for pagination, and meant to be easy to hack on.

Re:Quarkdown: A modern Markdown-based typesetting system by genewitch on Tuesday June 03, 2025 @09:25AM (#44169840)
Cool, not who you replied to but this is a cool idea, another way to archive pages. Gotta compare it to singlefile and headless chrome - I've been looking for a faster way to get a snapshot of a webpage via a chatbot (like in discord or matrix). Used to use Firefox headless, but large pages/slower sites would time out the api.