aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
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;