API reference: @salmonui/editors/markdown-editor
MarkdownSyntaxinterface
import type { MarkdownSyntax } from '@salmonui/editors/markdown-editor';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.
| Name | Signature | 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 |
blockquote | readonly blockquote: string; | Line prefix of |
unorderedList | readonly unorderedList: string; | Line prefix of |
orderedList | readonly orderedList: string; | Delimiter after the number of |
heading | readonly heading: string; | Heading marker character. |