Fixed YAML Front Matter extension on empty document
This commit is contained in:
parent
a1c92708de
commit
d9e80885b0
@ -15,7 +15,7 @@ define([
|
|||||||
fileDesc = fileDescParam;
|
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) {
|
yamlFrontMatterParser.onPagedownConfigure = function(editor) {
|
||||||
var converter = editor.getConverter();
|
var converter = editor.getConverter();
|
||||||
converter.hooks.chain("preConversion", function(text) {
|
converter.hooks.chain("preConversion", function(text) {
|
||||||
|
Loading…
Reference in New Issue
Block a user