stupid
This commit is contained in:
parent
0a4a5d82db
commit
a030724069
1 changed files with 12 additions and 0 deletions
12
src/lib.rs
12
src/lib.rs
|
|
@ -29,6 +29,18 @@ pub fn parse_content(c: &str) -> Vec<Content>{
|
||||||
}).collect()
|
}).collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn parse_content_owned(c: String) -> Vec<Content>{
|
||||||
|
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 {
|
fn markdownify_child(item: &Item) -> String {
|
||||||
let mut result = "".to_owned();
|
let mut result = "".to_owned();
|
||||||
match markdown_content(&item) {
|
match markdown_content(&item) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue