Fixed YAML Front Matter extension on empty document

This commit is contained in:
benweet 2013-10-13 16:23:39 +01:00
parent a1c92708de
commit d9e80885b0

View File

@ -15,7 +15,7 @@ define([
fileDesc = fileDescParam;
};
var regex = /^(\s*-{3}\s*\n([\w\W]+?)\n\s*-{3}\s*\n)?([\w\W]*)*/;
var regex = /^(\s*-{3}\s*\n([\w\W]+?)\n\s*-{3}\s*\n)?([\w\W]*)/;
yamlFrontMatterParser.onPagedownConfigure = function(editor) {
var converter = editor.getConverter();
converter.hooks.chain("preConversion", function(text) {