| 1 | --- |
| 2 | name: comark |
| 3 | description: Comark Syntax support |
| 4 | --- |
| 5 | |
| 6 | # Comark Syntax |
| 7 | |
| 8 | Enhanced Markdown with component and style syntax. |
| 9 | |
| 10 | ## Enable |
| 11 | |
| 12 | ```md |
| 13 | --- |
| 14 | comark: true |
| 15 | --- |
| 16 | ``` |
| 17 | |
| 18 | ## Inline Styles |
| 19 | |
| 20 | ```md |
| 21 | This is a [red text]{style="color:red"} |
| 22 | ``` |
| 23 | |
| 24 | ## Inline Components |
| 25 | |
| 26 | ```md |
| 27 | :inline-component{prop="value"} |
| 28 | ``` |
| 29 | |
| 30 | ## Image Attributes |
| 31 | |
| 32 | ```md |
| 33 | {width=500px lazy} |
| 34 | ``` |
| 35 | |
| 36 | ## Block Components |
| 37 | |
| 38 | ```md |
| 39 | ::block-component{prop="value"} |
| 40 | The **default** slot content |
| 41 | :: |
| 42 | ``` |
| 43 | |
| 44 | ## Use Cases |
| 45 | |
| 46 | - Add inline styles without HTML |
| 47 | - Use Vue components inline |
| 48 | - Add attributes to images |
| 49 | - Create complex component layouts |
| 50 | |
| 51 | Based on Comark Syntax. |
| 52 |