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

A code block, fenced or indented.

Spec: https://github.github.com/gfm/#fenced-code-blocks and https://github.github.com/gfm/#indented-code-blocks

# `t`

```elixir
@type t() :: %MDEx.CodeBlock{
  closed: boolean(),
  fence_char: String.t(),
  fence_length: non_neg_integer(),
  fence_offset: non_neg_integer(),
  fenced: boolean(),
  info: String.t(),
  literal: String.t(),
  nodes: [MDEx.Document.md_node()],
  sourcepos: term()
}
```

---

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