markdown with GFM extension

This commit is contained in:
Alphonse Paix
2025-09-20 16:45:16 +02:00
parent e017a4ed3f
commit eb55fdb29f
2 changed files with 7 additions and 5 deletions

View File

@@ -52,7 +52,8 @@ pub async fn see_post(
.await
.context(format!("Failed to fetch post #{}", post_id))
.map_err(AppError::unexpected_page)?
.to_html();
.to_html()
.context("Could not render markdown with extension.")?;
let template = PostTemplate { post };
Ok(Html(template.render().unwrap()).into_response())
}