respo-markdown

Parse Markdown subset to Respo virtual DOM

respo
marodnw
Download zip
Author
Version
0.1.3
License
Apache-2.0
Last updated
8 months ago
Downloads
30

Dependencies

#Markdown subset into Respo DOM

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)

#Supported Features

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 (![alt](url))
  • Bold/Emphasis (**bold**)
  • Italic (*italic*)
  • URLs (auto-detected http:// or https://)

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

#License

Apache License 2.0

Block

Re-export from util subpackage for internal use

comp_md

fn[T] comp_md(text : String, class_name? : String) ->
RespoNode
[T]

comp_md_block

fn[T] comp_md_block(text : String, class_name? : String, style? :
RespoStyle
, highlighter? : (String, String) -> String) ->
RespoNode
[T]

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io