diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-18 12:36:39 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-18 12:36:39 +0900 |
commit | 0154f00b08057faaa452105987cc6ef336058a92 (patch) | |
tree | cb4749106763b382956adde5c6602db7b2cb550a /_libs | |
parent | f4d3d4f01b539a3824ee000a275a3bcf3a5643c6 (diff) | |
download | site-0154f00b08057faaa452105987cc6ef336058a92.tar.gz |
Switch to MathML for web pages
Diffstat (limited to '_libs')
-rwxr-xr-x | _libs/onlymathml | 8 |
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 |