OptionalallowedOptionaldefaultDefault attributes to apply when parsing
OptionalgetFunction to extract content from the node for serialization
OptionalnameThe shortcode name (defaults to nodeName if not provided)
The Tiptap node name this spec is for
OptionalparseFunction to parse attributes from the attribute string
OptionalselfWhether this is a self-closing shortcode (no content, like [emoji name=party])
OptionalserializeFunction to serialize attributes to string
Allowlist of attributes to include in markdown serialization. If not provided, all attributes are included.
Each item can be either:
{ name: string, skipIfDefault?: any }for conditional inclusion