Kreuzberg.DjotAttributes (kreuzberg v4.4.2)

Copy Markdown View Source

Element attributes in Djot ({.class #id key="value"} syntax).

Matches the Rust Attributes struct.

Summary

Types

t()

@type t() :: %Kreuzberg.DjotAttributes{
  classes: [String.t()],
  id: String.t() | nil,
  key_values: [{String.t(), String.t()}]
}

Functions

from_map(data)

@spec from_map(map()) :: t()

to_map(attrs)

@spec to_map(t()) :: map()