Mead.Markup (mead_pdf v0.1.0)

Copy Markdown View Source

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>); also break_before="avoid"

Text content is HTML-like: whitespace (including source newlines) collapses to single spaces; write <br/> for a hard line break.

Summary

Functions

Accepts a rendered ~PDF template (or raw markup binary) and returns the Mead.Node tree. Multiple root elements are wrapped in a view.

Functions

to_node(rendered)

@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.