enable polyfilling mathml in gogle chombe
This commit is contained in:
parent
ab421928c6
commit
ad5cdfb82c
|
@ -25,7 +25,8 @@
|
||||||
()
|
()
|
||||||
(main
|
(main
|
||||||
()
|
()
|
||||||
,@output-cooked))))
|
,@output-cooked)
|
||||||
|
(div ((style "display: none")) "__X_MATHJAX_POLYFILL_PLACEHOLDER__"))))
|
||||||
|
|
||||||
(display "<!doctype html>")
|
(display "<!doctype html>")
|
||||||
(display-xexpr document)
|
(display-xexpr document)
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue