Closed emilk closed 2 months ago
fn main() -> eframe::Result<()> { let mut md_cache = egui_commonmark::CommonMarkCache::default(); eframe::run_simple_native("Markdown viewer", Default::default(), move |ctx, _frame| { egui::CentralPanel::default().show(ctx, |ui| { ui.label("Not markdown."); ui.label("Not markdown either."); let markdown = "This is markdown."; egui_commonmark::CommonMarkViewer::new("viewer").show(ui, &mut md_cache, markdown); ui.label("Not markdown again."); ui.label("Not markdown either."); }); }) }
I would expect that CommonMarkViewer would add the normal item spacing between elements, i.e. that we would get this:
CommonMarkViewer
Repro
Result
Expected
I would expect that
CommonMarkViewer
would add the normal item spacing between elements, i.e. that we would get this: