aboutsummaryrefslogtreecommitdiff
path: root/src/gemini_to_html.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-02-04 07:10:41 +0000
committerFuwn <[email protected]>2023-02-04 07:10:41 +0000
commit0c858189da17869bf0a4fbb7ab00366f9f86e3f4 (patch)
tree4217a9fa60f617f8dbb711ec8e075e31bc13418b /src/gemini_to_html.rs
parentfeat: markdown to html (diff)
downloadseptember-0c858189da17869bf0a4fbb7ab00366f9f86e3f4.tar.xz
september-0c858189da17869bf0a4fbb7ab00366f9f86e3f4.zip
feat: mathjax
Diffstat (limited to 'src/gemini_to_html.rs')
-rw-r--r--src/gemini_to_html.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gemini_to_html.rs b/src/gemini_to_html.rs
index ea09336..ec19cec 100644
--- a/src/gemini_to_html.rs
+++ b/src/gemini_to_html.rs
@@ -64,7 +64,7 @@ pub fn gemini_to_html(
href = link_from_host_href(url, &href);
}
- if var("PROXY_BY_DEFAULT").unwrap_or_else(|_| "true".to_string())
+ if var("PROXY_BY_DEFAULT").unwrap_or_else(|_| "true".to_string()).to_lowercase()
== "true"
&& href.contains("gemini://")
&& !surface