Kreuzberg.DjotInlineElement (kreuzberg v4.4.2)

Copy Markdown View Source

Inline element within a Djot block (text, emphasis, link, etc.).

Matches the Rust InlineElement struct.

Summary

Types

t()

@type t() :: %Kreuzberg.DjotInlineElement{
  attributes: Kreuzberg.DjotAttributes.t() | nil,
  content: String.t(),
  element_type: String.t(),
  metadata: map() | nil
}

Functions

from_map(data)

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

to_map(el)

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