From 0154f00b08057faaa452105987cc6ef336058a92 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sat, 18 Mar 2023 12:36:39 +0900 Subject: Switch to MathML for web pages --- _libs/onlymathml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 _libs/onlymathml (limited to '_libs') 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 -- cgit 1.4.1