also checks https://github.com/Respo/respo-markdown.calcit
moon add tiye/respo-markdown{
"path": "tiye/respo-markdown",
"alias": "markdown"
}@markdown.comp_md("this is a `demo`")
@markdown.comp_md("this is a `demo`", class_name=class_name)
@markdown.comp_md_block("### this is a `demo`\n\nthis is second line\n\n```\nprintln(demo)```")
@markdown.comp_md_block(content, class_name=class_name, style=style, highlighter=highlighter)This is a subset of Markdown for simple rendering scenarios:
Block elements:
- Headings (
#,##,###,####) - Paragraphs (separated by blank lines)
- Blockquotes (
>) - Horizontal rules (
---,***,___) - Fenced code blocks (
```) with language hint, supports indented code fences - Tables (with
| col | col |syntax, including separator line| --- |)
Inline elements:
- Inline code (
`code`) - Links (
[text](url)) - Images (
) - Bold/Emphasis (
**bold**) - Italic (
*italic*) - URLs (auto-detected
http://orhttps://)
Not supported:
- Headings level 5+ (
#####,######) - Nested blockquotes
- Ordered/unordered lists (
-,*,1.) - HTML tags
- Nested formatting (e.g., bold inside italic)
- Reference-style links
- Footnotes
- Task lists
Apache License 2.0