mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +09:00
small line combination
This commit is contained in:
+1
-3
@@ -9,9 +9,7 @@ export async function parseFilePromise() {
|
||||
console.log('\nParsing...');
|
||||
const content = await fs.promises.readFile(shared.config.input, 'utf8');
|
||||
const rssData = await data.load(content);
|
||||
|
||||
const channelData = rssData.child('channel');
|
||||
const allPostData = channelData.children('item');
|
||||
const allPostData = rssData.child('channel').children('item');
|
||||
|
||||
const postTypes = getPostTypes(allPostData);
|
||||
const posts = collectPosts(allPostData, postTypes);
|
||||
|
||||
Reference in New Issue
Block a user