diff --git a/src/lib.rs b/src/lib.rs index cfdbe07..5f1775c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,6 +29,18 @@ pub fn parse_content(c: &str) -> Vec{ }).collect() } +pub fn parse_content_owned(c: String) -> Vec{ + process_content(&itemize_content(&c)).into_iter().map(|i| { + match i { + Content::Markdown(s) => { + Content::MarkdownParsed(markdown::parse(&s).collect()) + //this is super lazy but it works.... + } + _ => {i} + } + }).collect() +} + fn markdownify_child(item: &Item) -> String { let mut result = "".to_owned(); match markdown_content(&item) {