markdown with GFM extension
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user