Skip to content

Commit

Permalink
Fix nested admonition
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Feb 1, 2025
1 parent 651ddae commit 6136ba3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/lexical-website/docs/concepts/traversals.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ All of these types have a `D` type parameter that must be a `CaretDirection`, so
can not accidentally mix up `next` and `previous` carets. Many of them
also have a `T` type parameter that encodes the type of the `origin` node.

:::note
:::tip

The methods of a caret are designed to operate on nodes attached to the `origin`
in the designated direction, not the `origin` itself. For example, this code is
Expand All @@ -35,6 +35,8 @@ that was just attached.
caret.insert($createTextNode('no-op')).remove();
```

:::

:::warning

Carets are immutable, and designed for low-level usage. There is no attempt
Expand Down

0 comments on commit 6136ba3

Please sign in to comment.