mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +09:00
I really need to do something about tabs
This commit is contained in:
@@ -10,5 +10,5 @@ module.exports = (post) => {
|
||||
.filter(category => category.$.domain === 'category')
|
||||
.map(({ $: attributes }) => decodeURIComponent(attributes.nicename));
|
||||
|
||||
return categories.filter(category => !settings.filter_categories.includes(category));
|
||||
return categories.filter(category => !settings.filter_categories.includes(category));
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// get excerpt, not decoded, newlines collapsed
|
||||
module.exports = (post) => {
|
||||
const excerpt = post.data.encoded[1].replace(/[\r\n]+/gm, ' ');
|
||||
return excerpt;
|
||||
const excerpt = post.data.encoded[1].replace(/[\r\n]+/gm, ' ');
|
||||
return excerpt;
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ module.exports = (post) => {
|
||||
.filter(category => category.$.domain === 'post_tag')
|
||||
.map(({ $: attributes }) => decodeURIComponent(attributes.nicename));
|
||||
|
||||
return categories;
|
||||
return categories;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user