# `Kreuzberg.DjotFormattedBlock`
[🔗](https://github.com/kreuzberg-dev/kreuzberg/blob/main/lib/kreuzberg/djot.ex#L91)

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

Matches the Rust `FormattedBlock` struct. Contains recursive children.

# `t`

```elixir
@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
}
```

# `from_map`

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

# `to_map`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
