diff --git a/public/res/extensions/toc.js b/public/res/extensions/toc.js index d6cda052..eb213074 100644 --- a/public/res/extensions/toc.js +++ b/public/res/extensions/toc.js @@ -116,10 +116,10 @@ define([ toc.onPagedownConfigure = function(editor) { previewContentsElt = document.getElementById('preview-contents'); - var tocEltList = document.querySelectorAll('.table-of-contents'); var tocExp = new RegExp("^" + toc.config.marker + "$", "g"); // Run TOC generation when conversion is finished directly on HTML editor.hooks.chain("onPreviewRefresh", function() { + var tocEltList = document.querySelectorAll('.table-of-contents, .toc'); var htmlToc = buildToc(); // Replace toc paragraphs _.each(previewContentsElt.getElementsByTagName('p'), function(elt) { diff --git a/public/res/html/settingsExtensionsAccordion.html b/public/res/html/settingsExtensionsAccordion.html index 6f60e0fd..ff2321ac 100644 --- a/public/res/html/settingsExtensionsAccordion.html +++ b/public/res/html/settingsExtensionsAccordion.html @@ -6,9 +6,9 @@ enabled - - <%= extensionName %> + <%= extensionName %>