Remove YAML headers from preview with smart new-line detection

This commit is contained in:
Djamil Legato
2014-09-18 17:40:41 -07:00
parent ddaa85b3e4
commit 02229fc90c

View File

@@ -267,7 +267,7 @@
render: function() {
this.currentvalue = this.editor.getValue();
this.currentvalue = this.editor.getValue().replace(/^---\n([^---]*)---\n{1,}/, '');
// empty code
if (!this.currentvalue) {