From e7509d41405a1f5af64f2f74166f2bc5f1673225 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Mon, 20 Oct 2025 12:47:36 +0200 Subject: feat: make markdown support optional with a feature flag --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index a4c6a44..a3cb57c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; -- cgit v1.2.3