# Blocks Blocks define structured content. ## Syntax ```md ::alert warning This is a warning :: ``` ## Definition ```ts defineBlock({ name: 'alert', parse({ args, content }) { return { kind: args[0], content }; }, formats: { html(node, ctx) { return `
${ctx.render(node.content)}
`; } } }); ``` ## Props ```md ::card title: Hello image: /img.jpg :: Content :: ``` ## Purpose Blocks allow structured, reusable content instead of abusing raw HTML.