View as Markdown

API reference: @salmonui/rich-text

InlineMarktype

import type { InlineMark } from '@salmonui/rich-text';
type InlineMark = {
    type: 'bold' | 'italic' | 'underline' | 'strike' | 'subscript' | 'superscript' | 'code';
} | {
    type: 'color' | 'backgroundColor' | 'fontFamily' | 'fontSize';
    value: string;
};

Inline formatting of text (shared with RichTextEditor marks).