@mocanvas/mocanvas · function

asRichText

declare function asRichText(source: RichTextSource): RichText

The rich-text document form of any label source; a string is converted, a document passed through.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.