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 @@ + +