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

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

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

```ts
import type { MarkdownBeforeCommandEvent } 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 MarkdownBeforeCommandEvent extends MarkdownCommandEvent {
    readonly defaultPrevented: boolean;
    preventDefault(): void;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `preventDefault` | `preventDefault(): void;` |  |  |
| `id` | `id: string;` | inherited |  |
| `source` | `source: MarkdownEditorSource;` | inherited |  |
