egui_commonmark_macros_extended

Crates.ioegui_commonmark_macros_extended
lib.rsegui_commonmark_macros_extended
version0.22.1
created_at2026-01-24 20:35:37.019596+00
updated_at2026-01-24 20:35:37.019596+00
descriptionEmbed markdown directly into the binary as egui widgets - extended fork
homepage
repositoryhttps://github.com/aydiler/md-viewer
max_upload_size
id2067445
size70,971
adiler (aydiler)

documentation

https://docs.rs/egui_commonmark_macros_extended

README

A commonmark viewer for egui

Crate Documentation

showcase

This crate is egui_commonmark's compile time variant. It is recommended to use this crate through egui_commonmark by enabling the macros feature.

Usage

In Cargo.toml:

egui_commonmark = "0.22"
# Specify what image formats you want to use
image = { version = "0.25", default-features = false, features = ["png"] }

Example

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

Example

use egui_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: 104

cargo fmt