Defaults
components
Block and inline components from the manifest: names, props, values, slots, YAML props and bound props, as one chain.
Block and inline components from the manifest: names, props, values, slots, YAML props and bound props, as one chain.
// registered by default; to configure it:
import components from 'comark-codemirror/plugins/components'
comark({ plugins: [components()] })
What it adds
- Completion in
block,component-name,attr-key,attr-value,binding-path,slot,props-key,props-value
For agents
Included in llms():
Block components:
::name{prop="value"}on its own line, content, then::. Nest with more colons (:::child…:::). Inline components::name,:name[text],:name{prop="value"}. Named slots inside a block component: a line#slot-name, then its content. Props:key="value", bareflag(true),:key="path"binds to data (frontmatter.*,props.*,data.*,meta.*),::key="data.x"binds two-way. Many props can go in a YAML block right under the opener, between---lines.