constcalloutSpec = createBlockMarkdownSpec({ nodeName:'callout', defaultAttributes: { type:'info' }, allowedAttributes: ['type', 'title'] // Only these get rendered to markdown })
// Usage in extension: exportconstCallout = Node.create({ // ... other config markdown:calloutSpec })
Creates a complete markdown spec for block-level nodes using Pandoc syntax.
The generated spec handles:
:::blockName {attributes}syntax