max / balanced_breakfast
| 1 | //! Render a Balanced Breakfast article body (HTML) to a PDF suitable |
| 2 | //! for reading on a Supernote e-ink tablet. |
| 3 | //! |
| 4 | //! Pipeline: HTML -> `pter` markdown -> `pulldown-cmark` events -> a small |
| 5 | //! hand-rolled `printpdf` layout. A5 portrait, Helvetica, three levels of |
| 6 | //! headings, bold, italic, bulleted / ordered lists, blockquotes. Images |
| 7 | //! and tables are dropped for v1; code blocks render as monospace inline |
| 8 | //! text with no syntax highlighting. |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | pub use render_article; |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | PrintPdf, |
| 19 | |
| 20 | Empty, |
| 21 | |
| 22 |