diff options
author | Adam T. Carpenter <atc@53hor.net> | 2025-05-27 19:00:15 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2025-05-27 19:00:15 -0400 |
commit | a88257e90beaaebbf7ebaca57cc871fceb93fda9 (patch) | |
tree | 6259d02103a7264b10a5e7c87c568071eb9c1d9e /src/tutors/fs_tutor.rs | |
parent | 130bceda109ce9c000779373ea1fc8b27079c8e5 (diff) | |
download | carpentertutoring-a88257e90beaaebbf7ebaca57cc871fceb93fda9.tar.xz carpentertutoring-a88257e90beaaebbf7ebaca57cc871fceb93fda9.zip |
chore: bump axum and askama
Fix breaking changes in markdown and templating
Diffstat (limited to 'src/tutors/fs_tutor.rs')
-rw-r--r-- | src/tutors/fs_tutor.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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())) } } |