aboutsummaryrefslogtreecommitdiff
path: root/code/src/markdown/render.rs
diff options
context:
space:
mode:
Diffstat (limited to 'code/src/markdown/render.rs')
-rw-r--r--code/src/markdown/render.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/code/src/markdown/render.rs b/code/src/markdown/render.rs
index 7962561..75ebe43 100644
--- a/code/src/markdown/render.rs
+++ b/code/src/markdown/render.rs
@@ -74,14 +74,6 @@ pub fn blocks_to_html(blocks: Vec<Block>) -> String {
out
}
-pub fn escape(text: &str) -> String {
- text.replace("&", "&amp;")
- .replace("<", "&lt;")
- .replace(">", "&gt;")
- .replace("'", "&#8217;")
- .replace("\"", "&quot;")
-}
-
// TODO this is *really* bad fix
fn fix_katex<'a>(s: &str) -> String {
let e = s.find("<span class=\"katex-html\"").unwrap();