ametaireau/pelican — pull request #347 by sametmax (2012-05-13 21:46:46+00:00)
Title: Added strip raw option to wordpress xml importer

This patch addresses this issue:

https://github.com/ametaireau/pelican/issues/344

By default the wordpress XML importer will now take any non parsable HTML bit (like iframes and flash embeds) and paste it into the resulting markdown file. You can prevent this behavior by passing the "--strip-raw" option to pelican_import.py.

Please note that as explained in the pandoc manpage, this feature only works with markdown, not with rst.

I added unit tests to back this up and the xml sample has one more entry than in the previous pull requests.

This patch also includes the fix for empty posts (https://github.com/ametaireau/pelican/issues/342), but not the changes for drafts hanlding (https://github.com/ametaireau/pelican/pull/346). This way you can accept either pull request independantly and reject the others.

If you want to accept them all, I can merge them in one big pull request if it makes your life easier.