From 90c905719f62afe168161068762bf6ada9422a33 Mon Sep 17 00:00:00 2001 From: benweet Date: Thu, 21 Nov 2013 17:47:19 +0000 Subject: [PATCH] Fixed footnotes. Fixes #191 --- public/res/extensions/markdownSectionParser.js | 4 ++-- public/res/extensions/partialRendering.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/res/extensions/markdownSectionParser.js b/public/res/extensions/markdownSectionParser.js index eea886a0..7366b356 100644 --- a/public/res/extensions/markdownSectionParser.js +++ b/public/res/extensions/markdownSectionParser.js @@ -16,14 +16,14 @@ define([ // Build a regexp to look for section delimiters var regexp = '^.+[ \\t]*\\n=+[ \\t]*\\n+|^.+[ \\t]*\\n-+[ \\t]*\\n+|^\\#{1,6}[ \\t]*.+?[ \\t]*\\#*\\n+'; // Title delimiters - if(markdownExtra.config.enabled) { + if(markdownExtra.enabled) { if(_.some(markdownExtra.config.extensions, function(extension) { return extension == "fenced_code_gfm"; })) { regexp = '^```.*\\n[\\s\\S]*?\\n```|' + regexp; // Fenced block delimiters } } - if(mathJax.config.enabled) { + if(mathJax.enabled) { // Math delimiter has to follow 1 empty line to be considered as a section delimiter regexp = '^[ \\t]*\\n\\$\\$[\\s\\S]*?\\$\\$|' + regexp; // $$ math block delimiters regexp = '^[ \\t]*\\n\\\\\\\\[[\\s\\S]*?\\\\\\\\]|' + regexp; // \\[ \\] math block delimiters diff --git a/public/res/extensions/partialRendering.js b/public/res/extensions/partialRendering.js index f166579c..32a288a6 100644 --- a/public/res/extensions/partialRendering.js +++ b/public/res/extensions/partialRendering.js @@ -197,7 +197,7 @@ define([ }; partialRendering.onInit = function() { - if(markdownExtra.config.enabled) { + if(markdownExtra.enabled) { if(_.some(markdownExtra.config.extensions, function(extension) { return extension == "footnotes"; })) {