Draft Viewer trait for markdown
This commit is contained in:
parent
c02ae0c4a4
commit
5655998761
9 changed files with 588 additions and 234 deletions
|
|
@ -187,7 +187,7 @@ macro_rules! text {
|
|||
#[macro_export]
|
||||
macro_rules! rich_text {
|
||||
() => (
|
||||
$crate::Column::new()
|
||||
$crate::text::Rich::new()
|
||||
);
|
||||
($($x:expr),+ $(,)?) => (
|
||||
$crate::text::Rich::from_iter([$($crate::text::Span::from($x)),+])
|
||||
|
|
@ -1155,9 +1155,9 @@ where
|
|||
/// .into()
|
||||
/// }
|
||||
/// ```
|
||||
pub fn rich_text<'a, Link, Theme, Renderer>(
|
||||
pub fn rich_text<'a, Link, Message, Theme, Renderer>(
|
||||
spans: impl AsRef<[text::Span<'a, Link, Renderer::Font>]> + 'a,
|
||||
) -> text::Rich<'a, Link, Theme, Renderer>
|
||||
) -> text::Rich<'a, Link, Message, Theme, Renderer>
|
||||
where
|
||||
Link: Clone + 'static,
|
||||
Theme: text::Catalog + 'a,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue