From a030724069a01ec82c904a1d47ffe095c200e0b5 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 10 Dec 2025 09:46:59 -0500 Subject: [PATCH] stupid --- src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) {