gorbie-commonmark-macros

Crates.iogorbie-commonmark-macros
lib.rsgorbie-commonmark-macros
version0.22.1
created_at2026-01-18 14:51:09.088049+00
updated_at2026-01-18 14:51:09.088049+00
descriptionEmbed markdown directly into the binary as egui widgets
homepage
repositoryhttps://github.com/triblespace/gorbie_commonmark
max_upload_size
id2052431
size72,818
Jan-Paul Bultmann (somethingelseentirely)

documentation

https://docs.rs/gorbie-commonmark-macros

README

A commonmark viewer for egui

Crate Documentation

showcase

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

at your option.

Commit count: 359

cargo fmt