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 13:03:20 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-18 13:04:08 +0900
commit5194715c34a02ed0c36789382e1d39f931248df4 (patch)
tree162f425ede3728065c9cd9e7be0e4695557d7bd4 /_libs
parent0154f00b08057faaa452105987cc6ef336058a92 (diff)
downloadsite-5194715c34a02ed0c36789382e1d39f931248df4.tar.gz
Fix injection
Diffstat (limited to '_libs')
-rwxr-xr-x_libs/onlymathml5
1 files changed, 3 insertions, 2 deletions
diff --git a/_libs/onlymathml b/_libs/onlymathml
index 5e49d37..4c0e387 100755
--- a/_libs/onlymathml
+++ b/_libs/onlymathml
@@ -1,7 +1,8 @@
 #!/bin/sh
-set -ex
-for i in $(find . -name *.html)
+set -e
+for i in $(find $(realpath $(dirname $0)/../__site) -name *.html)
 do
+  echo Removing KaTeX HTML from $i
   t=$(mktemp)
   htmlq --remove-nodes .katex-html < $i > $t
   mv $t $i