Method ToHtml
ToHtml()
Renders the document as a standalone, semantic HTML page: one section per page,
running heads and feet in the page's header and footer, headings
levelled, tables with their row and column spans, formulas as LaTeX, and figures and
charts as figure elements with their captions and data tables.
public string ToHtml()
Returns
- string
The HTML text of the document.
Remarks
Each element carries its category (data-category) and its bounds in page units
(data-bbox, left top right bottom), so a viewer can highlight where a passage
came from. Formulas are written as delimited LaTeX ([ ] for a formula
element, ( ) inline), which MathJax and KaTeX render as they stand. Document
text is untrusted input: markup it carries is reduced to a fixed allowlist of
structural tags, and scripts, styles, event handlers and unsafe links never reach
the output.