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

> The MarkdownSyntax interface of @salmonui/editors/markdown-editor: Markers per command: merged over the CommonMark / GFM defaults by the syntax prop.

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

```ts
import type { MarkdownSyntax } 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 MarkdownSyntax {
    readonly bold: readonly [
        string,
        string
    ];
    readonly italic: readonly [
        string,
        string
    ];
    readonly strikethrough: readonly [
        string,
        string
    ];
    readonly code: readonly [
        string,
        string
    ];
    readonly superscript: readonly [
        string,
        string
    ];
    readonly subscript: readonly [
        string,
        string
    ];
    readonly codeBlock: string;
    readonly blockquote: string;
    readonly unorderedList: string;
    readonly orderedList: string;
    readonly heading: string;
}
```

Markers per command: merged over the CommonMark / GFM defaults by the `syntax` prop.

Members (11):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `bold` | `readonly bold: readonly [     string,     string ];` |  |  |
| `italic` | `readonly italic: readonly [     string,     string ];` |  |  |
| `strikethrough` | `readonly strikethrough: readonly [     string,     string ];` |  |  |
| `code` | `readonly code: readonly [     string,     string ];` |  |  |
| `superscript` | `readonly superscript: readonly [     string,     string ];` |  |  |
| `subscript` | `readonly subscript: readonly [     string,     string ];` |  |  |
| `codeBlock` | `readonly codeBlock: string;` |  | Fence of `codeBlock`. |
| `blockquote` | `readonly blockquote: string;` |  | Line prefix of `blockquote`. |
| `unorderedList` | `readonly unorderedList: string;` |  | Line prefix of `unorderedList`. |
| `orderedList` | `readonly orderedList: string;` |  | Delimiter after the number of `orderedList` items (`'.'` gives `1. `). |
| `heading` | `readonly heading: string;` |  | Heading marker character. |
