From a88257e90beaaebbf7ebaca57cc871fceb93fda9 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 27 May 2025 19:00:15 -0400 Subject: chore: bump axum and askama Fix breaking changes in markdown and templating --- src/posts/fs_post.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/posts/fs_post.rs') diff --git a/src/posts/fs_post.rs b/src/posts/fs_post.rs index 4fc03b2..12ce538 100644 --- a/src/posts/fs_post.rs +++ b/src/posts/fs_post.rs @@ -1,3 +1,5 @@ +use comrak::Options; + use crate::posts::abstractions::post::Post; use std::{borrow::Cow, fs, path::PathBuf}; @@ -19,7 +21,7 @@ impl Post for FsPost { fn get_article(&self) -> Cow { let article = fs::read_to_string(&self.file).unwrap(); - Cow::Owned(article) + Cow::Owned(comrak::markdown_to_html(&article, &Options::default())) } fn get_description(&self) -> Cow { -- cgit v1.2.3