add: use pulldown-cmark instead
This commit is contained in:
parent
3f70a8f465
commit
fe2e61118a
5 changed files with 68 additions and 56 deletions
|
@ -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@", "@")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue