View as Markdown

API reference: @salmonui/rich-text

HtmlToTextOptionsinterface

import type { HtmlToTextOptions } from '@salmonui/rich-text';
interface HtmlToTextOptions {
    blockSeparator?: string;
}
HtmlToTextOptions members (1)
NameSignatureDescription
blockSeparatoroptionalblockSeparator?: string;

Inserted between blocks (paragraphs, headings, list items, rows). Default '\n'.