@@ -9,57 +9,66 @@ Comark's plugin system extends markdown functionality with specialized features.
99## Plugins
1010
1111:: card-group { cols =" 2 " }
12- :: card { icon =" i-lucide-shield-check " title =" Security " to =" /plugins/built-in/security " }
13- Sanitize markdown by removing dangerous HTML elements and attributes
12+ :: card { icon =" i-lucide-bell " title =" Alerts " to =" /plugins/built-in/alert " }
13+ Render GitHub-style alert blockquotes with icons and colors
14+ ::
15+
16+ :: card { icon =" i-lucide-replace " title =" Binding " to =" /plugins/built-in/binding " }
17+ Interpolate frontmatter, runtime data, or parent props with ` {{ path || default }} ` shorthand
18+ ::
19+
20+ :: card { icon =" i-lucide-corner-down-left " title =" Breaks " to =" /plugins/built-in/breaks " }
21+ Convert soft line breaks directly into ` :br ` components
1422 ::
1523
1624 :: card { icon =" i-lucide-smile " title =" Emoji " to =" /plugins/built-in/emoji " }
1725 Convert emoji shortcodes like ` :smile: ` into emoji characters
1826 ::
1927
20- :: card { icon =" i-lucide-code " title =" Syntax Highlighting " to =" /plugins/built-in/syntax-highlight " }
21- Beautiful code syntax highlighting using Shiki with multi-theme support
28+ :: card { icon =" i-lucide-footprints " title =" Footnotes " to =" /plugins/built-in/emoji " }
29+ Plugin for adding footnote references and definitions to your Comark documents.
2230 ::
2331
24- :: card { icon =" i-lucide-file-text " title =" Summary " to =" /plugins/built-in/summary " }
25- Extract content summaries using ` <!-- more --> ` delimiter
32+ :: card { icon =" i-lucide-heading " title =" Headings " to =" /plugins/built-in/emoji " }
33+ Plugin for extracting the page title and description from document content.
2634 ::
2735
28- :: card { icon =" i-lucide-list " title =" Table of Contents " to =" /plugins/built-in/toc " }
29- Generate hierarchical TOC from headings automatically
36+ :: card { icon =" i-lucide-braces " title =" JSON Render " to =" /plugins/built-in/json-render " }
37+ Transform JSON Render specs into UI components using ` json-render ` or ` yaml-render ` code blocks
3038 ::
3139
32- :: card { icon =" i-lucide-bell " title =" Alerts " to =" /plugins/built-in/alert " }
33- Render GitHub-style alert blockquotes with icons and colors
40+ :: card { icon =" i-lucide-calculator " title =" Mathematics " to =" /plugins/built-in/math " }
41+ Render LaTeX math formulas using KaTeX with inline and display equations
3442 ::
3543
36- :: card { icon =" i-lucide-check-square " title =" Task List " to =" /plugins/built-in/task-list " }
37- Render interactive checkboxes from ` [ ] ` and ` [x] ` list syntax
44+ :: card { icon =" i-simple-icons-mermaid " title =" Mermaid Diagrams " to =" /plugins/built-in/mermaid " }
45+ Create diagrams and visualizations using Mermaid syntax in code blocks
3846 ::
3947
40- :: card { icon =" i-simple-icons-mermaid " title =" Mermaid " to =" /plugins/built-in/mermaid " }
41- Create diagrams and visualizations using Mermaid syntax in code blocks
48+ :: card { icon =" i-lucide-quote " title =" Punctuation " to =" /plugins/built-in/punctuation " }
49+ Convert plain-text punctuation into typographically correct Unicode characters
4250 ::
4351
44- :: card { icon =" i-lucide-calculator " title =" Math " to =" /plugins/built-in/math " }
45- Render LaTeX math formulas using KaTeX with inline and display equations
52+ :: card { icon =" i-lucide-shield-check " title =" Security " to =" /plugins/built-in/security " }
53+ Sanitize markdown by removing dangerous HTML elements and attributes
4654 ::
4755
48- :: card { icon =" i-lucide-braces " title =" JSON Render " to =" /plugins/built-in/json-render " }
49- Transform JSON Render specs into UI components using ` json-render ` or ` yaml-render ` code blocks
56+ :: card { icon =" i-lucide-file-text " title =" Summary Extraction " to =" /plugins/built-in/summary " }
57+ Extract content summaries using ` <!-- more --> ` delimiter
5058 ::
5159
52- :: card { icon =" i-lucide-quote " title =" Punctuation " to =" /plugins/built-in/punctuation " }
53- Convert plain-text punctuation into typographically correct Unicode characters
60+ :: card { icon =" i-lucide-code " title =" Syntax Highlighting " to =" /plugins/built-in/syntax-highlight " }
61+ Beautiful code syntax highlighting using Shiki with multi-theme support
5462 ::
5563
56- :: card { icon =" i-lucide-corner-down-left " title =" Breaks " to =" /plugins/built-in/breaks " }
57- Convert soft line breaks directly into ` :br ` components
64+ :: card { icon =" i-lucide-check-square " title =" Task List " to =" /plugins/built-in/task-list " }
65+ Render interactive checkboxes from ` [ ] ` and ` [x] ` list syntax
5866 ::
59-
60- :: card { icon =" i-lucide-replace " title =" Binding " to =" /plugins/built-in/binding " }
61- Interpolate frontmatter, runtime data, or parent props with ` {{ path || default }} ` shorthand
67+
68+ :: card { icon =" i-lucide-list " title =" Table of Contents " to =" /plugins/built-in/toc " }
69+ Generate hierarchical TOC from headings automatically
6270 ::
71+
6372::
6473
6574## Guides
@@ -69,13 +78,13 @@ Comark's plugin system extends markdown functionality with specialized features.
6978 Define plugins with the ComarkPlugin interface and lifecycle hooks
7079 ::
7180
72- :: card { icon =" i-simple-icons-markdown " title =" Markdown-it Plugins " to =" /plugins/custom/markdown-it " }
73- Use existing markdown-it plugins or create new parser syntax rules
74- ::
75-
7681 :: card { icon =" i-lucide-git-branch " title =" AST API " to =" /plugins/custom/ast-api " }
7782 Traverse and transform the ComarkTree AST using the visit() utility
7883 ::
84+
85+ :: card { icon =" i-simple-icons-markdown " title =" Markdown-it Plugins " to =" /plugins/custom/markdown-it " }
86+ Use existing markdown-it plugins or create new parser syntax rules
87+ ::
7988::
8089
8190## Use Plugins
0 commit comments