diff --git a/index.html b/index.html index a59c584a..3add084b 100644 --- a/index.html +++ b/index.html @@ -630,7 +630,7 @@
" + toc.config.marker + "<\\/p>", "g"), htmlToc); - $(this).html(html); + // Replace toc paragraphs + $("#preview-contents p").each(function() { + if(tocExp.test($(this).html())) { + $(this).html(htmlToc); + } }); + // Add toc in the TOC button $(".table-of-contents").html(htmlToc); }); }; diff --git a/js/html/partialRenderingSettingsBlock.html b/js/html/partialRenderingSettingsBlock.html index 547ac448..0e1453f3 100644 --- a/js/html/partialRenderingSettingsBlock.html +++ b/js/html/partialRenderingSettingsBlock.html @@ -1,7 +1,5 @@ -
Binds together editor and preview scrollbars.
+Renders modified sections only.
- NOTE: The mapping between Markdown and HTML is based on the - position of the title elements (h1 h2 ...) in the page. Therefore if - your document does not contain any title the mapping will be linear and - consequently less accurate. + NOTE: Document sections are based on title elements (h1, h2...). Therefore if + your document does not contain any title, performance will not be increased.\ No newline at end of file diff --git a/js/html/scrollLinkSettingsBlock.html b/js/html/scrollLinkSettingsBlock.html index 547ac448..408e609a 100644 --- a/js/html/scrollLinkSettingsBlock.html +++ b/js/html/scrollLinkSettingsBlock.html @@ -1,7 +1,7 @@
Binds together editor and preview scrollbars.
NOTE: The mapping between Markdown and HTML is based on the - position of the title elements (h1 h2 ...) in the page. Therefore if - your document does not contain any title the mapping will be linear and + position of the title elements (h1, h2...) in the page. Therefore if + your document does not contain any title, the mapping will be linear and consequently less accurate.\ No newline at end of file diff --git a/js/synchronizer.js b/js/synchronizer.js index 2d14abad..b096e4c3 100644 --- a/js/synchronizer.js +++ b/js/synchronizer.js @@ -297,7 +297,7 @@ define([ if(isRealtime) { if(_.size(fileDesc.syncLocations) > 0) { - extensionMgr.onError("Realtime collaboration document can't be synchronized with multiple locations"); + extensionMgr.onError("Real time collaborative document can't be synchronized with multiple locations"); return; } // Perform the provider's real time export @@ -317,7 +317,7 @@ define([ } else { if(_.size(fileDesc.syncLocations) > 0 && _.first(_.values(fileDesc.syncLocations)).isRealtime) { - extensionMgr.onError("Realtime collaboration document can't be synchronized with multiple locations"); + extensionMgr.onError("Real time collaborative document can't be synchronized with multiple locations"); return; } // Perform the provider's standard export @@ -342,7 +342,7 @@ define([ $(".action-sync-manual-" + provider.providerId).click(function(event) { var fileDesc = fileMgr.currentFile; if(_.size(fileDesc.syncLocations) > 0 && _.first(_.values(fileDesc.syncLocations)).isRealtime) { - extensionMgr.onError("Realtime collaboration document can't be synchronized with multiple locations"); + extensionMgr.onError("Real time collaborative document can't be synchronized with multiple locations"); return; } provider.exportManual(event, fileDesc.title, fileDesc.content, function(error, syncAttributes) {