Markdown
Render Markdown through factory calls
Markdown files and Haml :markdown filters compile into the same component-shaped output as regular Haml.
Imported .md file
This content comes from article.md, but it renders as a Klenod component.
Article = import("./article.md")
The link component is mapped too.
Inline :markdown filter
This paragraph is written inside a Haml :markdown filter.
- Markdown lists become factory calls.
- Raw HTML works too: this strong element is compiled from Markdown.
- Component mappings come from
src/markdown-components.rb. - Ruby interpolation runs while rendering: 2026-08-31 16:52:28 +0000
:markdown
## Inline Markdown