From e7e848daeb5b2a952c375e2dd359e2a22777dcf7 Mon Sep 17 00:00:00 2001 From: lqdev Date: Mon, 28 Aug 2023 22:11:18 +0200 Subject: [PATCH] emoji tooltips --- crates/treehouse/src/html/markdown.rs | 2 +- static/css/main.css | 46 ++++++++++++++++++++++++++- static/js/emoji.js | 30 +++++++++++++++++ template/tree.hbs | 3 +- 4 files changed, 78 insertions(+), 3 deletions(-) create mode 100644 static/js/emoji.js diff --git a/crates/treehouse/src/html/markdown.rs b/crates/treehouse/src/html/markdown.rs index 29700ae..44ad115 100644 --- a/crates/treehouse/src/html/markdown.rs +++ b/crates/treehouse/src/html/markdown.rs @@ -463,7 +463,7 @@ where escape_html(&mut self.writer, &branch.html_id)?; self.writer.write_str("\">")?; } - self.writer.write_str("const TREEHOUSE_SITE = `{{ config.site }}`; - + +