1 unstable release
Uses new Rust 2024
| 0.1.0 | Oct 3, 2025 |
|---|
#1616 in WebAssembly
34 downloads per month
78KB
2K
SLoC
vertigo-cmark
Converts CommonMark string into rendered vertigo DomElement.
See Changelog for recent features.
Example
Dependencies:
vertigo = "0.8"
vertigo-cmark = "0.1"
use vertigo::{start_app, DomElement, dom};
const CONTENT: &str = r#"
# Hello world
## Paragraph
Lorem ipsum dolor sit amet, __consectetur__ adipiscing elit, sed do
```eiusmod tempor incididunt```
ut *labore* et dolore magna aliqua.
## List
* Lorem ipsum
* dolor sit amet
* consectetur adipiscing elit
## Table
| Lorem | Ipsum |
| --------------- | -------------- |
| dolor sit amet | consectetur |
| adipiscing elit | sed do eiusmod |
"#;
fn app() -> DomElement {
let content = vertigo_cmark::to_vertigo(CONTENT);
dom! {
<div>{ content }</div>
}
}
#[no_mangle]
pub fn start_application() {
start_app(app);
}

Features
- Regular, bod, italic, strike-through text
- Headings
- Paragraphs
- Tables
- Blockquotes
- Codeblocks
- Code highlighting (with
syntectfeature) - Lists (numbers, bullets)
- Rules
- Task list markers
- Footnotes
- Soft/hard breaks
- Links
- Images
- Html (with
htmlfeature)
Dependencies
~12–23MB
~378K SLoC