summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
authorWu Cheng-Han2015-12-20 11:28:54 -0600
committerWu Cheng-Han2015-12-20 11:28:54 -0600
commit9eb23603f4d30a0822afde7fbd234976557f575a (patch)
tree51de9b06d232d37164c92b9cfdb65e550431da93 /public/js/index.js
parent45ec05e2ed4962fcd4497cea8b58176f44a9ec3b (diff)
Added support of toc syntax
Diffstat (limited to '')
-rw-r--r--public/js/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 046c5407..03f5e587 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -86,6 +86,10 @@ var supportReferrals = [
{
text: '![image text](url "title")',
search: '![]()'
+ },
+ {
+ text: '[TOC]',
+ search: '[]'
}
];
var supportExternals = [
@@ -1876,6 +1880,7 @@ function updateViewInner() {
finishView(ui.area.view);
autoLinkify(ui.area.view);
deduplicatedHeaderId(ui.area.view);
+ renderTOC(ui.area.view);
generateToc('toc');
generateToc('toc-affix');
generateScrollspy();