# `Kreuzberg.HierarchicalBlock`
[🔗](https://github.com/kreuzberg-dev/kreuzberg/blob/main/lib/kreuzberg/hierarchy.ex#L1)

A hierarchical block within a page, representing heading-level structure.

Matches the Rust `HierarchicalBlock` struct.

## Fields

  * `:text` - The text content of this block
  * `:font_size` - The font size of the text
  * `:level` - Hierarchy level ("h1"-"h6" or "body")
  * `:bbox` - Optional bounding box as [left, top, right, bottom]

# `t`

```elixir
@type t() :: %Kreuzberg.HierarchicalBlock{
  bbox: [float()] | nil,
  font_size: float(),
  level: String.t(),
  text: String.t()
}
```

# `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*
