egui_commonmark icon indicating copy to clipboard operation
egui_commonmark copied to clipboard

Markdown viewer for egui

Results 12 egui_commonmark issues
Sort by recently updated
recently updated
newest added

![image](https://github.com/lampsitter/egui_commonmark/assets/108888572/c509de6a-cba6-4fea-b8b2-2506a556743d) This is implemented using the new `pulldown_cmark` 0.11 version which supports simple math parsing (which is still not published, so for now we pull it from Git) The renderer...

Is LaTeX support planned?

enhancement

https://github.com/lampsitter/egui_commonmark/assets/108888572/fbc8ef9c-ed92-4ffe-9e3d-c11066ebf683 Minimal reproducible example with `eframe`: ```rust use eframe::egui; use egui_commonmark::{CommonMarkCache, CommonMarkViewer}; fn main() { let native_options = eframe::NativeOptions::default(); eframe::run_native( "Commonmark bug", native_options, Box::new(|_cc| Box::new(App::default())), ) .expect("failed to run app");...

bug

I would like your opinion: I'm not sure what method to use to manage your own url manager. Currently when I click on a URL it attempts to open on...

`CommonMarkViewer::new` takes a `source_id: impl std::hash::Hash` as an argument. I have some questions about it: What exactly is it used for? Is it only used for the scroll cache of...

Currently code blocks (i.e. triple backticks) wrap the text by default which is not ideal for code usually. It would be great if there can be an option to enable...

bug

[See an example](https://marked.js.org/demo/?text=!%5B%5D(data%3Aimage%2Fjpeg%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAWaSURBVHhe7ZzPchtFEMZ3JFlrIECeAN6SJ%2BDAgTNnTnDinCpSVIokQDhwguICF8KdSmEM1h9r6e7RrHdnetQjr3Y0kvtX9e2selq7llrdX2I7MV9%2B9LSpOuCDvxcrWh14%2Fma5CWL%2FLG57MYwuF9e03mGqef0OrQ48e1RPOxEbezyfBLH36os2hledGVN9%2BO68msLq7oL79TS8Xj2zqwOeUj1%2By9DqwPP5ZT%2BGrC8227MtuD%2B%2F9S5YVZNLyOvE8PSymfXSiGn%2FnYox2a5KIWhBCmOCjeSrdHA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QVwzYozEjyaaKOjmjB5nmxd1%2FE9uyxht5qNGPbvTI2XfISRk9SD2kMM66IBylF%2BngBeGamg36igF7NGYk2VRRpRu9aV5xf1MPQ2r04xs98iA7pGSjVw8BlcSDKwhHSUXKUhCuqdmgrxiwR2NGkk0VVZLRm81Pz3DtYVaz7VkHNfrRjR7RDgGVZPTqIQD3xhwLLUiEYxUp%2FAc7mfBvS7fmgr5iwB6NGUk2VdSxjN40vzC%2FKLdc2f0OavQ5jF47JKpjGb16SITwrcqDFmQPchQpXpBuZ2Wie8v21lzQVwzYozEjyaaKymH0pvn1m7DQTR2UX40%2Bh9Frh1jZVFE5jF49ZA%2Fw0%2Bzr0GhBBnLoIu1XkG53ZaJ7y%2FbWXNBXDNijMSPJpoo6tNGb5renYVFXTJ3U6Ec3ekQ7JCabKurQRq8eMhD8hPsaghZkBIYUafg3F4c89550b9nemgv6igF7NGYk2VRRg4y%2Bec2Y%2BhLkR9XoRzd6RDsEgT36BEuyqaKGGL16yAjgp95XKlqQTKQWKV6Qbh%2Fty5Dn3pPuLdtbc0FfMWCPxowkmyoq2eibPxlTR%2FyoGv3oRo9oh8SAPfoES7KpolKNXj0kE9gbvji0IIWhBSmKqvof0OYpv1IobqcAAAAASUVORK5CYII%3D)&options=%7B%0A%20%22async%22%3A%20false%2C%0A%20%22breaks%22%3A%20false%2C%0A%20%22extensions%22%3A%20null%2C%0A%20%22gfm%22%3A%20true%2C%0A%20%22hooks%22%3A%20null%2C%0A%20%22pedantic%22%3A%20false%2C%0A%20%22silent%22%3A%20false%2C%0A%20%22tokenizer%22%3A%20null%2C%0A%20%22walkTokens%22%3A%20null%0A%7D&version=14.1.2) Not every markdown renderer supports this (example: Github) but some do, for example: VSCode, Marked.js

enhancement

I wanted to patch rerun to the latest egui master, egui_commonmark failed to compile, so here is the fix! I'll convert this to the actual egui update once egui 0.32...

https://github.com/emilk/egui/commit/557bd56e1962266e765cc7b7958c1fd3f14fa3e1

The show_mut function allows to toggle checkboxes while viewing the rendered markdown. Up to now, there is no indication if the function has changed anything. This PR marks the response...