From 67005bc59dd918eadcbd9c7c9285aed0c3422292 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 20 Sep 2022 21:05:44 -0400 Subject: move markdown and templates into a dedicated crate This does not move the ructe templates around, only the newer Maud ones. The only template I can't move easily is the salary history one, but I should get rid of that anyways. --- src/post/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/post/mod.rs') diff --git a/src/post/mod.rs b/src/post/mod.rs index 5c2ed2d..263471d 100644 --- a/src/post/mod.rs +++ b/src/post/mod.rs @@ -103,7 +103,7 @@ async fn read_post( let date = NaiveDate::parse_from_str(&front_matter.clone().date, "%Y-%m-%d") .map_err(|why| eyre!("error parsing date in {:?}: {}", fname, why))?; let link = format!("{}/{}", dir, fname.file_stem().unwrap().to_str().unwrap()); - let body_html = crate::app::markdown::render(cfg.clone(), &body) + let body_html = xesite_markdown::render(&body) .wrap_err_with(|| format!("can't parse markdown for {:?}", fname))?; let date: DateTime = DateTime::::from_utc(NaiveDateTime::new(date, NaiveTime::from_hms(0, 0, 0)), Utc) -- cgit v1.2.3