@mocanvas/mocanvas · interface

RichTextMarkExtension

interface RichTextMarkExtension extends RichTextExtension

A formatting mark mocanvas knows how to render, measure and export.


Properties · 3

readonly attributesFor?: (mark: RichTextMark) => Record<string, string> | null

Attributes for the rendered tag, or null to drop the mark (an unsafe href, say).

readonly kind: "mark"
readonly tag: string

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.