mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-18 14:13:55 +09:00
Trim everything
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ function initTurndownService() {
|
||||
}
|
||||
|
||||
function getPostContent(post, turndownService, config) {
|
||||
let content = post.encoded[0].trim();
|
||||
let content = post.encoded[0];
|
||||
|
||||
// insert an empty div element between double line breaks
|
||||
// this nifty trick causes turndown to keep adjacent paragraphs separated
|
||||
|
||||
Reference in New Issue
Block a user