# `MDExNative.Comrak.Heading`
[🔗](https://github.com/leandrocp/mdex_native/blob/v0.3.6/lib/mdex_native/comrak/document.ex#L259)

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() :: %MDExNative.Comrak.Heading{
  attrs: MDExNative.Comrak.Attributes.t() | nil,
  closed: boolean(),
  level: pos_integer(),
  nodes: [MDExNative.Comrak.ast_node()],
  setext: boolean(),
  sourcepos: term()
}
```

---

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