1 unstable release
Uses new Rust 2024
| 0.22.1 | Jan 18, 2026 |
|---|
#46 in #common-mark
Used in gorbie-commonmark
90KB
2K
SLoC
A commonmark viewer for egui
This crate is gorbie_commonmark's compile time variant. It is recommended to use
this crate through gorbie_commonmark by enabling the macros feature.
Usage
In Cargo.toml:
gorbie-commonmark = "0.22.1"
# Specify what image formats you want to use
image = { version = "0.25", default-features = false, features = ["png"] }
Example
use gorbie_commonmark::{CommonMarkCache, commonmark};
let mut cache = CommonMarkCache::default();
let _response = commonmark!(ui, &mut cache, "# ATX Heading Level 1");
Alternatively you can embed a file
Example
use gorbie_commonmark::{CommonMarkCache, commonmark_str};
let mut cache = CommonMarkCache::default();
commonmark_str!(ui, &mut cache, "content.md");
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~9MB
~184K SLoC