# `MDEx.Heading`
[🔗](https://github.com/leandrocp/mdex/blob/v0.12.0/lib/mdex/document.ex#L2896)

A heading, either ATX or setext.

ATX is the most common heading, a line starting with 1-6 `#` characters,
and setext is represented as one or more lines followed by a heading underline as `===` or `---`.

Spec: https://github.github.com/gfm/#atx-headings and https://github.github.com/gfm/#setext-headings

# `t`

```elixir
@type t() :: %MDEx.Heading{
  closed: boolean(),
  level: pos_integer(),
  nodes: [MDEx.Document.md_node()],
  setext: boolean(),
  sourcepos: term()
}
```

---

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