Create markdown widget helpers in iced_widget

This commit is contained in:
Héctor Ramón Jiménez 2024-07-18 14:34:00 +02:00
parent aa62fa2ce9
commit 47b7a36f36
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 277 additions and 220 deletions

View file

@ -7,6 +7,7 @@ use crate::core;
use crate::core::widget::operation;
use crate::core::{Element, Length, Pixels, Widget};
use crate::keyed;
use crate::markdown::{self};
use crate::overlay;
use crate::pick_list::{self, PickList};
use crate::progress_bar::{self, ProgressBar};
@ -702,6 +703,10 @@ pub fn span<'a, Font>(
text::Span::new(text)
}
#[cfg(feature = "markdown")]
#[doc(inline)]
pub use markdown::view as markdown;
/// Creates a new [`Checkbox`].
///
/// [`Checkbox`]: crate::Checkbox