InlineMarkdownSpecOptions
@blockslides/core / InlineMarkdownSpecOptions
Interface: InlineMarkdownSpecOptions
Defined in: blockslides/packages/core/src/utilities/markdown/createInlineMarkdownSpec.ts:43
Properties
nodeName
nodeName:
string
Defined in: blockslides/packages/core/src/utilities/markdown/createInlineMarkdownSpec.ts:45
The Tiptap node name this spec is for
name?
optionalname:string
Defined in: blockslides/packages/core/src/utilities/markdown/createInlineMarkdownSpec.ts:47
The shortcode name (defaults to nodeName if not provided)
getContent()?
optionalgetContent: (node) =>string
Defined in: blockslides/packages/core/src/utilities/markdown/createInlineMarkdownSpec.ts:49
Function to extract content from the node for serialization
Parameters
node
any
Returns
string
parseAttributes()?
optionalparseAttributes: (attrString) =>Record<string,any>
Defined in: blockslides/packages/core/src/utilities/markdown/createInlineMarkdownSpec.ts:51
Function to parse attributes from the attribute string