From 7ecf5f540b0b224119896dcb42bb4a5daedb18ed Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Wed, 10 Jan 2018 13:54:15 +0100 Subject: [PATCH] Add markup::{Markup, StyledString} --- src/utils/markup/markdown.rs | 15 +++++++- src/utils/markup/mod.rs | 68 ++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 1 deletion(-) diff --git a/src/utils/markup/markdown.rs b/src/utils/markup/markdown.rs index d34edcf..c49fdea 100644 --- a/src/utils/markup/markdown.rs +++ b/src/utils/markup/markdown.rs @@ -9,7 +9,7 @@ use std::borrow::Cow; use theme::{Effect, Style}; use utils::lines::spans::Span; -/// Parse markdown string into spans of styled text. +/// Iterator that parse a markdown text and outputs styled spans. pub struct Parser<'a> { first: bool, stack: Vec