paragraph

fnTextNode paragraph(string text, string styleName = "") @safe pure nothrow

Creates a paragraph node with the given style and text content.

Parameters

textThe paragraph text.
styleNameOptional style name.

Returns

A TextNode of kind PARAGRAPH.