# MarkdownTextState (@salmonui/editors/markdown-editor)

> The MarkdownTextState interface of @salmonui/editors/markdown-editor.

Canonical: https://salmonui.dev/docs/reference/editors/markdown-editor/MarkdownTextState

```ts
import type { MarkdownTextState } from '@salmonui/editors/markdown-editor';
```

Entry index: https://salmonui.dev/docs/reference/editors/markdown-editor (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/editors/markdown-editor.md).

## Reference

Kind: interface

```ts
interface TextState {
    readonly text: string;
    readonly start: number;
    readonly end: number;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `text` | `readonly text: string;` |  |  |
| `start` | `readonly start: number;` |  | Selection start (UTF-16 offset). |
| `end` | `readonly end: number;` |  | Selection end; equal to `start` for a caret. |
