mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-13 11:46:37 +09:00
Separate normalizers out, fix config flag checks
This commit is contained in:
+2
-2
@@ -18,10 +18,10 @@ export async function parseFilePromise(config) {
|
||||
const posts = collectPosts(channelData, postTypes, config);
|
||||
|
||||
const images = [];
|
||||
if (config.saveAttachedImages) {
|
||||
if (config.saveImages === 'attached' || config.saveImages === 'all') {
|
||||
images.push(...collectAttachedImages(channelData));
|
||||
}
|
||||
if (config.saveScrapedImages) {
|
||||
if (config.saveImages === 'scraped' || config.saveImages === 'all') {
|
||||
images.push(...collectScrapedImages(channelData, postTypes));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user