From 9eb23603f4d30a0822afde7fbd234976557f575a Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 20 Dec 2015 11:28:54 -0600 Subject: Added support of toc syntax --- public/js/index.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'public/js/index.js') 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(); -- cgit v1.2.3