feat: update url

This commit is contained in:
2025-12-15 23:29:28 +08:00
parent 50922641a9
commit 9ceb5fe92a
3 changed files with 26 additions and 11 deletions

View File

@@ -23,6 +23,8 @@ func rmDollarSurr(text string) string {
func ToKatex(formula string) string {
res := formula
res = strings.ReplaceAll(res, "\n", "")
// Remove mbox surrounding
res = changeAll(res, `\mbox `, " ", "{", "}", "", "")
res = changeAll(res, `\mbox`, " ", "{", "}", "", "")