sempdf
sempdf v1.9.1Interfaces

Interface: TemplateHtmlBlock

sempdf v1.9.1


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

PropertyModifierTypeDescriptionDefined in
class?readonlyClassNameInputStylesheet class name(s) applied to the generated blocks' own selectors.src/types.ts:1836
htmlreadonlystringHTML to convert. Tag soup is tolerated; scripts and styles are dropped.src/types.ts:1832
keepWithNext?readonlybooleanWhether this block should stay on the same page as the following block when possible.src/types.ts:1838
options?readonlyHtmlToBlocksOptionsConversion and styling options.src/types.ts:1834
typereadonly"html"-src/types.ts:1830

On this page