| Crates.io | gorbie-commonmark-macros |
| lib.rs | gorbie-commonmark-macros |
| version | 0.22.1 |
| created_at | 2026-01-18 14:51:09.088049+00 |
| updated_at | 2026-01-18 14:51:09.088049+00 |
| description | Embed markdown directly into the binary as egui widgets |
| homepage | |
| repository | https://github.com/triblespace/gorbie_commonmark |
| max_upload_size | |
| id | 2052431 |
| size | 72,818 |
This crate is gorbie_commonmark's compile time variant. It is recommended to use
this crate through gorbie_commonmark by enabling the macros feature.
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"] }
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
use gorbie_commonmark::{CommonMarkCache, commonmark_str};
let mut cache = CommonMarkCache::default();
commonmark_str!(ui, &mut cache, "content.md");
Licensed under either of
at your option.