8 releases (breaking)
0.7.0 | Feb 9, 2023 |
---|---|
0.6.0 | Dec 8, 2022 |
0.5.0 | Nov 29, 2022 |
0.4.0 | Aug 25, 2022 |
0.1.1 | Feb 25, 2022 |
#312 in Text processing
1,427 downloads per month
36KB
873 lines
A commonmark viewer for egui

While this crate's main focus is commonmark, it also supports a subset of Github's markdown syntax: tables, strikethrough, tasklists and footnotes.
Usage
use egui_commonmark::*;
let markdown =
r"# Hello world
* A list
* [ ] Checkbox
";
// Stores image handles between each frame
let mut cache = CommonMarkCache::default();
CommonMarkViewer::new("viewer").show(ui, &mut cache, markdown);
Features
syntax_highlighting
: Syntax highlighting inside code blocks withsyntect
svg
: Support for viewing svg imagesfetch
: Images with urls will be downloaded and displayed
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.
Dependencies
~6–13MB
~223K SLoC