> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# getMarkState

> `const` **getMarkState**: `EditorSelector`\<[`MarkState`](/api/selectors/type-aliases/markstate/) \| `undefined`\>

Defined in: selector.get-mark-state.ts:32

Given that text is inserted at the current position, what marks should
be applied?

:::caution[Beta]
This API should not be used in production and may be trimmed from a public release.
:::