udpate index
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
<meta name="description" content="Description">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.js"></script>
|
||||
<!-- <link rel="stylesheet" href="//unpkg.com/docsify@4.7.0/lib/themes/vue.css"> -->
|
||||
</head>
|
||||
<body>
|
||||
@@ -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 @@
|
||||
|
||||
<!-- <script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script> -->
|
||||
|
||||
|
||||
|
||||
<!-- or <script src="//cdn.jsdelivr.net/gh/upupming/docsify-katex/dist/docsify-katex.js"></script> -->
|
||||
|
||||
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css"> -->
|
||||
|
||||
Reference in New Issue
Block a user