add: use pulldown-cmark instead

This commit is contained in:
trisua 2025-07-20 15:28:44 -04:00
parent 3f70a8f465
commit fe2e61118a
5 changed files with 68 additions and 56 deletions

View file

@ -267,7 +267,7 @@ pub async fn delete_by_dir_request(
}
pub async fn render_markdown_request(Json(req): Json<RenderMarkdown>) -> impl IntoResponse {
tetratto_shared::markdown::render_markdown(&CustomEmoji::replace(&req.content))
tetratto_shared::markdown::render_markdown(&CustomEmoji::replace(&req.content), true)
.replace("\\@", "@")
.replace("%5C@", "@")
}