diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-10-20 12:47:36 +0200 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-10-20 12:51:08 +0200 |
| commit | e7509d41405a1f5af64f2f74166f2bc5f1673225 (patch) | |
| tree | c2e56fb086d83938d4c40238afccc66f925caacb /src/lib.rs | |
| parent | fix: markdown `Viewer` impl (diff) | |
| download | iced_selection-e7509d41405a1f5af64f2f74166f2bc5f1673225.tar.gz | |
feat: make markdown support optional with a feature flag
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2,12 +2,14 @@ //! //! [`Paragraph`]: https://docs.iced.rs/iced_graphics/text/paragraph/struct.Paragraph.html +#[cfg(feature = "markdown")] pub mod markdown; pub mod selection; pub mod text; use iced_widget::core; use iced_widget::graphics::text::Paragraph; +#[cfg(feature = "markdown")] pub use markdown::view as markdown; #[doc(no_inline)] pub use text::Text; |
