Fixed footnotes. Fixes #191
This commit is contained in:
		
							parent
							
								
									071ecb8acc
								
							
						
					
					
						commit
						90c905719f
					
				| @ -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
 | ||||
|  | ||||
| @ -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"; | ||||
|             })) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 benweet
						benweet