Refactor for post data and frontmatter

This commit is contained in:
Will Boyd
2024-02-23 10:24:40 -05:00
parent 5db0a1b081
commit 1ad4e2dfdf
2 changed files with 63 additions and 47 deletions
+2 -2
View File
@@ -94,8 +94,8 @@ function initTurndownService() {
return turndownService;
}
function getPostContent(post, turndownService, config) {
let content = post.encoded[0];
function getPostContent(postData, turndownService, config) {
let content = postData.encoded[0];
// insert an empty div element between double line breaks
// this nifty trick causes turndown to keep adjacent paragraphs separated