diff options
author | Wu Cheng-Han | 2016-08-15 11:27:32 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-08-15 11:27:32 +0800 |
commit | b4ad011dc1cec22b088578ca019f76c0c9ba4612 (patch) | |
tree | cc879b775b9538bbfe2a3cbdaa4c23cb1d20ebb8 /public/js/pretty.js | |
parent | a013c9d3bc0eb98c935e80bdb694c1a1cf7bd4c4 (diff) |
Fix toc id naming to avoid overlap with user toc
Diffstat (limited to 'public/js/pretty.js')
-rw-r--r-- | public/js/pretty.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/js/pretty.js b/public/js/pretty.js index adc8c741..0ca7ee18 100644 --- a/public/js/pretty.js +++ b/public/js/pretty.js @@ -21,7 +21,7 @@ if (md.meta.type && md.meta.type === 'slide') { } // only render again when meta changed if (JSON.stringify(md.meta) != JSON.stringify(lastMeta)) { - parseMeta(md, null, markdown, $('#toc'), $('#toc-affix')); + parseMeta(md, null, markdown, $('#ui-toc'), $('#ui-toc-affix')); rendered = md.render(text); } // prevent XSS @@ -34,8 +34,8 @@ finishView(markdown); autoLinkify(markdown); deduplicatedHeaderId(markdown); renderTOC(markdown); -generateToc('toc'); -generateToc('toc-affix'); +generateToc('ui-toc'); +generateToc('ui-toc-affix'); smoothHashScroll(); createtime = lastchangeui.time.attr('data-createtime'); lastchangetime = lastchangeui.time.attr('data-updatetime'); |