mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +09:00
Make tags and categories arrays
This commit is contained in:
+4
-2
@@ -94,10 +94,12 @@ function getTags(post) {
|
||||
}
|
||||
|
||||
function processCategoryTags(post, domain) {
|
||||
if (!post.category) {
|
||||
return [];
|
||||
}
|
||||
return post.category
|
||||
.filter(c => c["$"].domain === domain)
|
||||
.map(({ $: c }) => c.nicename)
|
||||
.join(", ");
|
||||
.map(({ $: c }) => c.nicename);
|
||||
}
|
||||
|
||||
function collectAttachedImages(data) {
|
||||
|
||||
Reference in New Issue
Block a user