0 words
|
1 page
Export PDF
# Markdown to PDF Pagination Engine This document tests the capability of the pure frontend pagination engine. ## Features - GitHub-Flavored Markdown (GFM) - **Live Preview** with accurate page boundaries - Syntax highlighting via `highlight.js` - Smart splitting of massive code blocks! --- ## 1. Margin Collapse Fix In standard DOM, the bottom margin of this heading and the top margin of the paragraph collapse. The new engine measures elements *inside* the actual page container to track these collapsed boundaries perfectly, preventing prematurely short pages! | Syntax | Description | Test Text | | :--- | :----: | ---: | | Header | Title | Here's this | | Paragraph | Text | And more |
## 2. Manual Page Break The `
` tag forced this content cleanly to the next page! ## 3. Oversized Code Block Splitting Here is a very long code block to test smart splitting. It should gracefully split across pages without breaking syntax highlighting or overflowing. ```javascript function finishTest() { console.log("This function should end up on a new page!"); return true; } Note: Blockquotes are treated as atomic elements where possible to prevent ugly line breaks.