- Support for loading images embedded in the markdown with data urls.
- Definition lists
- Proper inline code block rendering
-
CommonMarkViewer::new
no longer takes in an id. -
commonmark!
andcommonmark_str!
no longer takes in an id. -
CommonMarkViewer::show_scrollable
takes in an id explicity. -
Updated pulldown-cmark to 0.12
-
Newlines are no longer inserted before/after markdown (#56)
For the old behaviour you can call
ui.label("");
before and and after
- Experimental comrak backend (#57)
- Deprecated method
syntax_theme
- Fixed docs.rs build
commonmark!
andcommonmark_str!
for compile time parsing of markdown. The proc macros will output egui widgets directly into your code. To use this enable themacros
feature.
- MSRV bumped to 1.76
- Missing newline before alerts
- Replace copy icon with checkmark when clicking copy button in code blocks (#42 by @zeozeozeo)
- Interactive tasklists with
CommonMarkViewer::show_mut
(#40 by @crumblingstatue)
- MSRV bumped to 1.74 due to pulldown_cmark
- Alerts are case-insensitive
- More spacing between list indicator and elements (#46)
- Lists align text when wrapping instead of wrapping at the beginning of the next line (#46)
- Code blocks won't insert a newline when in lists
- In certain scenarios there was no newline after lists
- Copy button for code blocks show the correct cursor again on hover (regression after egui 0.27)
AlertBundle::from_alerts
AlertBundle::into_alerts
- Update to egui 0.27 (#37 by @emilk)
CommonMarkViewer::show
returnsInnerResponse<()>
(#36 by @ElhamAryanpur)
- A single table cell split into multiple cells (#35)
- Alerts (#32)
Tip
Alerts like this can be used
-
Prettier blockquotes
Before two simple horizontal lines were rendered. Now it's a single horizontal line in front of the elements.
-
Upgraded to pulldown-cmark 0.10
- Ordered lists remember their number when mixing bullet and ordered lists
- Build failure with 1.72
- Update to egui 0.26
- Missing space after tables
- Option to change default implicit uri scheme #24
- Code block has borders.
- Update to egui 0.24
- Missing space after heading when preceded by an image
- Missing space after separator
- Copy text button in code blocks
- Primitive syntax highlighting by default
- Code blocks now use the syntax highlighting theme's caret and selection colors while using the
better_syntax_highlighting
feature. - Image loading errors are shown (#8 by @emilk).
CommonMarkCache
implementsDebug
(#7 by @ChristopherPerry6060).CommonMarkCache::add_syntax_themes_from_folder
CommonMarkCache::add_syntax_theme_from_bytes
CommonMarkViewer::explicit_image_uri_scheme
- Links of the type
[`fancy` _link_](..)
is rendered correctly.
- Update to egui 0.23
- Image formats are no longer implicitly enabled.
- Use new image API from egui (#11 by @jprochazk).
- Feature
syntax_highlighting
has been renamed tobetter_syntax_highlighting
.
CommonMarkCache::reload_images
- Removed trimming of svg's transparency. The function has been removed from resvg.
- Better looking checkboxes
- Support for egui 0.22. This release can also still be used with 0.21.
An explicit dependency update might be needed to use egui 0.22:
cargo update -p egui_commonmark
CommonMarkCache::clear_scrollable_with_id
to clear the cache for only a single scrollable viewer.
- Removed added spacing between elements in
show_scrollable
- Upgraded egui to 0.21
- Upgraded egui to 0.20
- Default dark syntax highlighting theme has been changed from base16-mocha.dark to base16-ocean.dark.
- Render text in svg images.
- Fixed erroneous newline after images.
- Fixed missing newline after lists and quotes.
- Upgraded egui to 0.19.
- Display indented code blocks in a single code block (#1 by @lazytanuki).
- Automatic light/dark theme in code blocks.
- Copyable code blocks.
- Deprecated
syntax_theme
in favour ofsyntax_theme_dark
andsyntax_theme_light
.
- No longer panic upon unknown syntax theme.
- Fixed incorrect line endings within headings.