sempdf v1.9.1Interfaces
Interface: TemplateHtmlBlock
sempdf / TemplateHtmlBlock
Defined in: src/types.ts:1829
Template block that converts an HTML fragment into blocks at render time. Expanded before pagination, so the headings inside it still feed the TOC and auto-outline and every generated block paginates normally.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
class? | readonly | ClassNameInput | Stylesheet class name(s) applied to the generated blocks' own selectors. | src/types.ts:1836 |
html | readonly | string | HTML to convert. Tag soup is tolerated; scripts and styles are dropped. | src/types.ts:1832 |
keepWithNext? | readonly | boolean | Whether this block should stay on the same page as the following block when possible. | src/types.ts:1838 |
options? | readonly | HtmlToBlocksOptions | Conversion and styling options. | src/types.ts:1834 |
type | readonly | "html" | - | src/types.ts:1830 |