View as Markdown

API reference: @salmonui/editors/markdown-editor

MarkdownTextStateinterface

import type { MarkdownTextState } from '@salmonui/editors/markdown-editor';
interface TextState {
    readonly text: string;
    readonly start: number;
    readonly end: number;
}
MarkdownTextState members (3)
NameSignatureDescription
textreadonly text: string;
startreadonly start: number;

Selection start (UTF-16 offset).

endreadonly end: number;

Selection end; equal to start for a caret.