about summary refs log tree commit diff homepage
path: root/_libs
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-18 12:36:39 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-18 12:36:39 +0900
commit0154f00b08057faaa452105987cc6ef336058a92 (patch)
treecb4749106763b382956adde5c6602db7b2cb550a /_libs
parentf4d3d4f01b539a3824ee000a275a3bcf3a5643c6 (diff)
downloadsite-0154f00b08057faaa452105987cc6ef336058a92.tar.gz
Switch to MathML for web pages
Diffstat (limited to '_libs')
-rwxr-xr-x_libs/onlymathml8
1 files changed, 8 insertions, 0 deletions
diff --git a/_libs/onlymathml b/_libs/onlymathml
new file mode 100755
index 0000000..5e49d37
--- /dev/null
+++ b/_libs/onlymathml
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -ex
+for i in $(find . -name *.html)
+do
+  t=$(mktemp)
+  htmlq --remove-nodes .katex-html < $i > $t
+  mv $t $i
+done