Configuration for the atomic block markdown spec
Complete markdown specification object
const youtubeSpec = createAtomBlockMarkdownSpec({
nodeName: 'youtube',
requiredAttributes: ['src'],
defaultAttributes: { start: 0 },
allowedAttributes: ['src', 'start', 'width', 'height'] // Only these get rendered to markdown
})
// Usage in extension:
export const Youtube = Node.create({
// ... other config
markdown: youtubeSpec
})
Creates a complete markdown spec for atomic block nodes using Pandoc syntax.
The generated spec handles:
:::blockName {attributes}