A commonmark viewer for egui
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:
= "0.18"
# Specify what image formats you want to use
= { = "0.25", = false, = ["png"] }
Example
use ;
let mut cache = default;
let _response = commonmark!;
Alternatively you can embed a file
Example
use ;
let mut cache = default;
commonmark_str!;
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.