SchumacherFM / wordpress-to-hugo-exporter

Hugo is static site generator written in golang. Wordpress is a tool for remote access to your server ;-) ❗️Contributions welcome!
https://gohugo.io
GNU General Public License v3.0
681 stars 95 forks source link

title encoding fix #49

Closed guycalledseven closed 6 years ago

guycalledseven commented 6 years ago

I played with exporter the other night and noticed it did not play well with high utf characters.

fixed title encoding. I had issues with non printable chars (e.g. 
), double quotes ("), single quotes (' and ').. in my titles, causing invalid .md files generation, breaking hugo, looking bad (all titles on site contained codes, not characters) etc.

Added post image to the output. I really am sorry if this is my local thing. I needed it so I exported it like this.

Did boy scouting on Markdownify, merged with latest from the repo.

SchumacherFM commented 6 years ago

Thank you very much for this PR! Looks good to me. I merged it but I can't run the code. If someone complains please stand by to fix it ;-)

guycalledseven commented 6 years ago

Acknowledged. 😀