| Crates.io | egui_commonmark_macros_extended |
| lib.rs | egui_commonmark_macros_extended |
| version | 0.22.1 |
| created_at | 2026-01-24 20:35:37.019596+00 |
| updated_at | 2026-01-24 20:35:37.019596+00 |
| description | Embed markdown directly into the binary as egui widgets - extended fork |
| homepage | |
| repository | https://github.com/aydiler/md-viewer |
| max_upload_size | |
| id | 2067445 |
| size | 70,971 |
This crate is egui_commonmark's compile time variant. It is recommended to use
this crate through egui_commonmark by enabling the macros feature.
In Cargo.toml:
egui_commonmark = "0.22"
# Specify what image formats you want to use
image = { version = "0.25", default-features = false, features = ["png"] }
use egui_commonmark::{CommonMarkCache, commonmark};
let mut cache = CommonMarkCache::default();
let _response = commonmark!(ui, &mut cache, "# ATX Heading Level 1");
Alternatively you can embed a file
use egui_commonmark::{CommonMarkCache, commonmark_str};
let mut cache = CommonMarkCache::default();
commonmark_str!(ui, &mut cache, "content.md");
Licensed under either of
at your option.