From 75fd6e543c52ab1a91753d90fc6bcbb8eaa90ec7 Mon Sep 17 00:00:00 2001 From: qiwang067 Date: Thu, 23 Jun 2022 22:10:19 +0800 Subject: [PATCH] udpate index --- docs/index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/index.html b/docs/index.html index d31c226..71d0d5e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,6 +7,8 @@ + + @@ -21,6 +23,9 @@ previousText:'上一篇', nextText:'下一篇', }, + markdown: { + latexRender: katex.renderToString.bind(katex) + }, search:{ placeholder:'搜索', noData:'找不到结果', @@ -35,6 +40,10 @@ // https://github.com/docsifyjs/docsify/issues/936 return content.replace(/..\/img/g, "img"); }) + + hook.doneEach(function () { + window.MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById('app')]); + }) } ], } @@ -56,6 +65,8 @@ + +