Posting from hashnode to medium is not working
AlessandroVol23 opened this issue Β· comments
Hi ππ½
love your CLI!
Somehow I can't cross-post this article https://sandro.volpee.de/aws-lambda-interview-questions to medium without a lot of gibberish and CSS to appear.
I've run the command: cross-post run https://sandro.volpee.de/aws-lambda-interview-questions -p medium
Any idea why that happens? I configured cloudinary for the images.
Hi @AlessandroVol23 thank you for using this CLI tool!
This behavior is definitely strange. I'll look into it and see what's causing it. In the meantime, can you try changing the article selector to #post-content-wrapper
? This seems to fix the issue, but due to how Medium's API work the title and cover image won't be added. This is just temporary though until I look for what's causing the issue.
Hi @AlessandroVol23 this issue has been resolved you just need to update the tool. However, I do recommend you set the selector
config to #post-content-wrapper
as by default this tool uses the selector article
to grab the article, and hashnode has a bunch of other elements that are inside the Article element. You'll probably have to set the image selector and the title selector as well.
All right thanks! I'll try that :)