mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-14 20:27:05 +09:00
Move getPostExcerpt() into frontmatter getter
This commit is contained in:
@@ -110,11 +110,6 @@ function getPostCoverImageId(postData) {
|
||||
return id;
|
||||
}
|
||||
|
||||
function getPostExcerpt(post) {
|
||||
const excerpt = post.encoded[1].replace(/(\r\n|\n|\r)/gm, " ");
|
||||
return excerpt;
|
||||
}
|
||||
|
||||
function collectAttachedImages(channelData) {
|
||||
const images = getItemsOfType(channelData, 'attachment')
|
||||
// filter to certain image file types
|
||||
|
||||
Reference in New Issue
Block a user