Added support of toc syntax

This commit is contained in:
Wu Cheng-Han
2015-12-20 11:28:54 -06:00
parent 45ec05e2ed
commit 9eb23603f4
4 changed files with 48 additions and 3 deletions

View File

@@ -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();