Basic markdown with Tailwind CSS Typography
This commit is contained in:
@@ -51,7 +51,8 @@ pub async fn see_post(
|
||||
let post = get_post(&connection_pool, post_id)
|
||||
.await
|
||||
.context(format!("Failed to fetch post #{}", post_id))
|
||||
.map_err(AppError::unexpected_page)?;
|
||||
.map_err(AppError::unexpected_page)?
|
||||
.to_html();
|
||||
let template = PostTemplate { post };
|
||||
Ok(Html(template.render().unwrap()).into_response())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user