aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2021-04-25 18:42:59 -0400
committerGitHub <noreply@github.com>2021-04-25 18:42:59 -0400
commitb7226624b8a3f318199581306c1e785e16c4d5e9 (patch)
treebaf19beeb6029404ff4f8b9e6f1f68ddec7313ab /src
parent2c5de872de9cc60980387f42ee51ea2b18f5bc79 (diff)
downloadxesite-b7226624b8a3f318199581306c1e785e16c4d5e9.tar.xz
xesite-b7226624b8a3f318199581306c1e785e16c4d5e9.zip
blog: add morph tutorial (#363)
* blog: add morph tutorial Signed-off-by: Christine Dodrill <me@christine.website> * typos Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'src')
-rw-r--r--src/app/markdown.rs3
1 files changed, 1 insertions, 2 deletions
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<String> {
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<String> {
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),