Defaults

attributes

Attribute blocks after inline elements and headings: `**bold**{.x}`, `[span]{.x}`, `## Title {#id}`.

Attribute blocks after inline elements and headings: **bold**{.x}, [span]{.x}, ## Title {#id}.

// registered by default; to configure it:
import attributes from 'comark-codemirror/plugins/attributes'

comark({ plugins: [attributes()] })

What it adds

  • Completion in attr-key, attr-class, attr-id
  • Lint

For agents

Included in llms():

Attributes {#id .class key="value" flag} go right after an inline element (**bold**{.x}, [link](url){target="_blank"}, [span]{.x}) or at the end of a heading (## Title {#custom-id}).

Copyright © 2026