There was an error while loading. Please reload this page.
1 parent 78b458f commit f73aa3cCopy full SHA for f73aa3c
inc/class-importer.php
@@ -298,7 +298,7 @@ protected function update_post_from_markdown_source( $post_id ) {
298
$title = $yaml['title'];
299
} elseif ( preg_match( '/^\n*#\s(.+)/', $markdown, $matches ) ) {
300
$title = $matches[1];
301
-$markdown = preg_replace( '/^#\swp\s(.+)/', '', $markdown );
+$markdown = preg_replace( '/^\n*#\swp\s(.+)/', '', $markdown );
302
}
303
$markdown = trim( $markdown );
304
0 commit comments