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/tutors/fs_tutor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tutors/fs_tutor.rs') diff --git a/src/tutors/fs_tutor.rs b/src/tutors/fs_tutor.rs index dc8a635..6b05fd8 100644 --- a/src/tutors/fs_tutor.rs +++ b/src/tutors/fs_tutor.rs @@ -1,3 +1,5 @@ +use comrak::Options; + use crate::tutors::abstractions::tutor::Tutor; use std::{borrow::Cow, cmp::Ordering, fs, path::PathBuf}; @@ -25,7 +27,7 @@ impl Tutor for FsTutor { let mut path = self.dir.to_owned(); path.push(format!("{}.md", self.get_id())); let blurb = fs::read_to_string(path).unwrap(); - Cow::Owned(blurb) + Cow::Owned(comrak::markdown_to_html(&blurb, &Options::default())) } } -- cgit v1.2.3