#commonmark #egui

egui_commonmark

Commonmark viewer for egui

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

Download history 69/week @ 2022-12-01 71/week @ 2022-12-08 34/week @ 2022-12-15 164/week @ 2022-12-22 266/week @ 2022-12-29 292/week @ 2023-01-05 252/week @ 2023-01-12 213/week @ 2023-01-19 241/week @ 2023-01-26 265/week @ 2023-02-02 397/week @ 2023-02-09 381/week @ 2023-02-16 515/week @ 2023-02-23 270/week @ 2023-03-02 293/week @ 2023-03-09 312/week @ 2023-03-16

1,427 downloads per month

MIT/Apache

36KB
873 lines

A commonmark viewer for egui

Crate Documentation CI

showcase

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 with syntect
  • svg: Support for viewing svg images
  • fetch: Images with urls will be downloaded and displayed

License

Licensed under either of

at your option.

Dependencies

~6–13MB
~223K SLoC