chore: bump tetratto-shared
This commit is contained in:
parent
d612859c4b
commit
a881f6659d
4 changed files with 41 additions and 21 deletions
|
@ -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(),
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue