deltaToHtml
Function Stability: stable
Converts a Loro text delta to inline HTML. Marks are rendered as semantic HTML tags.
Related guide: Clipboard and Markdown →
Signature
TypeScript
import { deltaToHtml } from '@aionbuilders/nabu';TypeScript
function deltaToHtml(delta: Delta<string>[]): stringParameters
| Parameter | Type | Description |
|---|---|---|
delta | Delta<string>[] | n/a |
Returns
string
Source: src/lib/behaviors/text/text.behavior.svelte.js:20