chore: bump tetratto-shared

This commit is contained in:
trisua 2025-07-20 16:23:39 -04:00
parent d612859c4b
commit a881f6659d
4 changed files with 41 additions and 21 deletions

View file

@ -20,7 +20,7 @@ pub(crate) type State = Arc<RwLock<InnerState>>;
fn render_markdown(value: &Value, _: &HashMap<String, Value>) -> tera::Result<Value> {
Ok(
tetratto_shared::markdown::render_markdown(value.as_str().unwrap())
tetratto_shared::markdown::render_markdown(value.as_str().unwrap(), false)
.replace("\\@", "@")
.replace("%5C@", "@")
.into(),

View file

@ -175,7 +175,7 @@ struct RenderMarkdown {
}
async fn render_request(Json(req): Json<RenderMarkdown>) -> impl IntoResponse {
tetratto_shared::markdown::render_markdown(&req.content)
tetratto_shared::markdown::render_markdown(&req.content, false)
}
#[derive(Deserialize)]