jonhoo / wp2ghost

Convert WordPress XML exports to Ghost JSON import files
MIT License
62 stars 15 forks source link

Email post are not converted #7

Open balajikandasamy opened 8 years ago

balajikandasamy commented 8 years ago

WordPress blog post by email doesn't get converted to a valid JSON

email blog post

ghost.zip

jonhoo commented 8 years ago

Could you post the original WP XML file?

balajikandasamy commented 8 years ago

balaji039sblog.wordpress.2016-03-28.zip

balajikandasamy commented 8 years ago

I was trying to reach you by mail can you share your ID please.

jonhoo commented 8 years ago

I got your e-mail. Just responded. I don't think this is related to the post being made through e-mail. Instead, the issue is that the post starts with four spaces, which is the Markdown equivalent of starting a <pre> tag. Thus, all the content inside will be escaped and printed as code. If you just remove the leading spaces, the post should be rendered correctly.

balajikandasamy commented 8 years ago

The spaces were not purposefully left. Can we just add a check condition or trim the spaces in the start. If that's easy to do. Please close the issue. Thanks

Sent from Outlook Mobile

On Sun, Apr 3, 2016 at 10:38 AM -0700, "Jon Gjengset" notifications@github.com wrote:

I got your e-mail. Just responded. I don't think this is related to the post being made through e-mail. Instead, the issue is that the post starts with four spaces, which is the Markdown equivalent of starting a <pre> tag. Thus, all the content inside will be escaped and printed as code. If you just remove the leading spaces, the post should be rendered correctly.


You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/jonhoo/wp2ghost/issues/7#issuecomment-205019338