Kreuzberg.DjotFormattedBlock (kreuzberg v4.4.2)

Copy Markdown View Source

Block-level element in a Djot document (paragraph, heading, list, etc.).

Matches the Rust FormattedBlock struct. Contains recursive children.

Summary

Types

t()

@type t() :: %Kreuzberg.DjotFormattedBlock{
  attributes: Kreuzberg.DjotAttributes.t() | nil,
  block_type: String.t(),
  children: [t()],
  code: String.t() | nil,
  inline_content: [Kreuzberg.DjotInlineElement.t()],
  language: String.t() | nil,
  level: non_neg_integer() | nil
}

Functions

from_map(data)

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

to_map(block)

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