references/syntax-mdc.md

GitHub
namecomark
descriptionComark Syntax support

Comark Syntax

Enhanced Markdown with component and style syntax.

Enable

---
comark: true
---

Inline Styles

This is a [red text]{style="color:red"}

Inline Components

:inline-component{prop="value"}

Image Attributes

![](/image.png){width=500px lazy}

Block Components

::block-component{prop="value"}
The **default** slot content
::

Use Cases

  • Add inline styles without HTML
  • Use Vue components inline
  • Add attributes to images
  • Create complex component layouts

Based on Comark Syntax.