Converts rendered ~PDF markup into a Mead.Node tree.
Attribute values are strings with CSS-like grammar:
- lengths and factors:
"250","12.5" flex_direction:"row"or"column"- colors:
"#RGB"or"#RRGGBB" - booleans (
break_before,keep_with_next,wrap,repeat):"true"/"false", or bare presence (<view repeat>); alsobreak_before="avoid"
Text content is HTML-like: whitespace (including source newlines)
collapses to single spaces; write <br/> for a hard line break.
Summary
Functions
@spec to_node(Phoenix.LiveView.Rendered.t() | iodata()) :: Mead.Node.t()
Accepts a rendered ~PDF template (or raw markup binary) and returns the
Mead.Node tree. Multiple root elements are wrapped in a view.