Direct insertion of WordProcessingML into the template.
When every node being inserted is a valid child of w:p the markup is added
inline and only the merge field's run is replaced; otherwise the whole
paragraph containing the field is replaced. Run properties of the field are
merged into the inserted runs, but only where the inserted markup does not
define them itself.
Summary
Functions
Returns true when all top level nodes may live inside a w:p element.
Compares two WordML values by the markup they insert.
Parses a WordML string into content. A parsed fragment is used as-is.
The top level nodes of the fragment.
The markup this content will insert.
Types
@type t() :: %Sablon.Content.WordML{xml: Sablon.XML.Document.t()}
Functions
Returns true when all top level nodes may live inside a w:p element.
Compares two WordML values by the markup they insert.
@spec new(binary() | Sablon.XML.Document.t()) :: t()
Parses a WordML string into content. A parsed fragment is used as-is.
@spec nodes(t()) :: [Sablon.XML.Node.t()]
The top level nodes of the fragment.
The markup this content will insert.