Djot.Htmltype t = Kernel.Html.helt = | HText of stringEscaped when serialized.
*)| HRaw of stringWritten as is.
*)| HVoid of string * bool * Attr.tHVoid (tag, self_closing, attrs): no closing tag.
| HElem of string * int * Attr.t * t listHElem (tag, newlines, attrs, children). newlines is 2 for a newline after both tags, 1 after the closing tag only, 0 for neither.
val to_string : t list -> stringval of_doc : Doc.t -> stringThe HTML of blocks that are not in a document, such as a tree built in code or the blocks Stream returns. Headings get identifiers and sections, and footnotes and references are resolved among these blocks, as Doc.of_string does for a text.
The blocks must have no Block.t.Section. For a parsed document use of_doc.