lonekorean / wordpress-export-to-markdown

Converts a WordPress export XML file into Markdown files.
MIT License
1.07k stars 216 forks source link

Pages with the same name are overwriten #73

Open juanmah opened 2 years ago

juanmah commented 2 years ago

I have a multi-language web. Most of the pages have the same name.

When I do the conversion to markdown, I get only one of the same-named pages.

I would like to to have all of them.

<item>
        <title><![CDATA[5G]]></title>
        <link>https://xafir.cat/tecnologia/5g/</link>
        <pubDate>Fri, 16 Jul 2021 09:57:55 +0000</pubDate>
        <guid isPermaLink="false">https://xafir.cat/?page_id=2558</guid>
        <description></description>
<item>
        <title><![CDATA[5G]]></title>
        <link>https://xafir.cat/en/technology/5g/</link>
        <pubDate>Thu, 29 Jul 2021 10:35:15 +0000</pubDate>
        <guid isPermaLink="false">https://xafir.cat/?page_id=3094</guid>
        <description></description>

As you can see, the name is the same. The link is unique.

If the names were tecnologia/5g/index.md and en/technology/5g/index.md there would be no overwriting.