aboutsummaryrefslogtreecommitdiff
path: root/code/src/markdown/render.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-26 15:16:05 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-26 15:16:05 +0200
commita5ee9b1edd25f698813ebdc52404ec19fa479718 (patch)
tree7d428ca9b2b0059e39f78bc096bf57b94f1d8a3d /code/src/markdown/render.rs
parent15d78464ba9a717a71e1dc47a4101c8b13ec6581 (diff)
downloadmetamuffin-blog-a5ee9b1edd25f698813ebdc52404ec19fa479718.tar
metamuffin-blog-a5ee9b1edd25f698813ebdc52404ec19fa479718.tar.bz2
metamuffin-blog-a5ee9b1edd25f698813ebdc52404ec19fa479718.tar.zst
new renderer
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();