[go: up one dir, main page]

egui_commonmark 0.3.0

Commonmark viewer for egui
Documentation

A commonmark viewer for egui

Crate Documentation CI

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.