enable polyfilling mathml in gogle chombe

This commit is contained in:
xenia 2021-06-06 01:37:08 -04:00
parent ab421928c6
commit ad5cdfb82c
2 changed files with 18 additions and 1 deletions

View File

@ -25,7 +25,8 @@
()
(main
()
,@output-cooked))))
,@output-cooked)
(div ((style "display: none")) "__X_MATHJAX_POLYFILL_PLACEHOLDER__"))))
(display "<!doctype html>")
(display-xexpr document)

16
support/nginx.conf Normal file
View File

@ -0,0 +1,16 @@
map $http_user_agent $mathjax_polyfill {
default "<script type='text/javascript' src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>";
"~Mozilla.*Firefox/[0-9]+" "";
}
server {
server_name localhost;
listen 80 default;
root /var/www/html;
index index.html index.htm;
location / {
try_files $uri $uri/ =404;
sub_filter "__X_MATHJAX_POLYFILL_PLACEHOLDER__" $mathjax_polyfill;
}
}