@mocanvas/mocanvas · interface
interface RichTextNodeExtension extends RichTextExtensionA node type mocanvas knows how to render, measure and export.
Properties · 5
readonly emptyHtml?: stringRendered inside the tag when the node has no content, so an empty block still occupies a line.
readonly kind: "node"readonly tag: string | nullHTML tag the node serializes to. null renders the children with no wrapper.
readonly tagFor?: (node: RichTextNode) => string | nullPer-node tag, for a type whose tag depends on its attrs (a heading's level).
readonly void?: booleanVoid nodes (<br>, <hr>) render no children and no closing tag.
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.