From b7226624b8a3f318199581306c1e785e16c4d5e9 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 25 Apr 2021 18:42:59 -0400 Subject: blog: add morph tutorial (#363) * blog: add morph tutorial Signed-off-by: Christine Dodrill * typos Signed-off-by: Christine Dodrill --- src/app/markdown.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/app/markdown.rs b/src/app/markdown.rs index 0b5f096..dbc5ecf 100644 --- a/src/app/markdown.rs +++ b/src/app/markdown.rs @@ -29,7 +29,6 @@ pub fn render(inp: &str) -> Result { if u.scheme() != "conversation" { return Ok(()); } - let smol = u.query().unwrap_or("").contains("smol"); let parent = node.parent().unwrap(); node.detach(); let mut message = vec![]; @@ -44,7 +43,7 @@ pub fn render(inp: &str) -> Result { let name = u.host_str().unwrap_or("Mara"); let mut html = vec![]; - crate::templates::mara(&mut html, mood, name, Html(message.trim().into()), smol)?; + crate::templates::mara(&mut html, mood, name, Html(message.trim().into()))?; let new_node = arena.alloc(AstNode::new(RefCell::new(Ast::new( NodeValue::HtmlInline(html), -- cgit v1.2.3