Skip to content

1681-engine / ui / parseRichText

Function: parseRichText() ​

ts
function parseRichText(source, options?): RichSpan[];

Defined in: src/ui/rich/richMarkup.ts:58

Parses markup into spans; adjacent text of one style is one span.

Parameters ​

ParameterType
sourcestring
optionsRichMarkupOptions

Returns ​

RichSpan[]

Released under the MIT License.