-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Repro
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.");
});
})
}Result
Expected
I would expect that CommonMarkViewer would add the normal item spacing between elements, i.e. that we would get this:

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working