# `Mojibake.Bidi.Paragraph`
[🔗](https://github.com/zaerl/mojibake/blob/main/src/elixir/lib/mojibake/bidi.ex#L41)

A paragraph resolved by `Mojibake.Bidi.resolve/2`.

  * `text` - the text of the paragraph
  * `direction` - the paragraph direction, `:ltr` or `:rtl`
  * `level` - the paragraph embedding level, `0` for left to right and `1` for right to left
  * `length` - the number of characters of the paragraph, after rule X9 removed the controls

The resolved levels are held by the NIF and freed when the paragraph is garbage collected.

# `t`

```elixir
@type t() :: %Mojibake.Bidi.Paragraph{
  direction: :ltr | :rtl,
  length: non_neg_integer(),
  level: 0 | 1,
  ref: reference(),
  text: String.t()
}
```

---

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