From 5194715c34a02ed0c36789382e1d39f931248df4 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sat, 18 Mar 2023 13:03:20 +0900 Subject: Fix injection --- _libs/onlymathml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '_libs') 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 -- cgit 1.4.1