protiumx / blogpub

Github action to publish your blog articles from Markdown to Medium or Dev.to
Apache License 2.0
30 stars 6 forks source link

Request for adding support for Images : Very important #11

Closed ksingh7 closed 2 years ago

ksingh7 commented 2 years ago

@protiumx first of all this is a great project, thanks a lot for developing this and open sourcing this. I have been researching about such automated tools and could not find one. You can easily make a decent business out of it my friend and i can bring you some customers :)

I have used your instructions and I am happy to report that they work flawlessly.

To make this production-ready (i mean to be ready to use by the public), it currently lacks support to images

I am not a TS/JS developer, otherwise, i could have sent you a PR. I can only request you to kindly prioritize adding the support for images and it would be ready to by the broader audience.

Other features that could be interesting are

I am happy to contribute in promoting / documentation / bragging about this tool if not with Code. Hope this helps.

ksingh7 commented 2 years ago

Just for reference, I am using this as my MD file

---
title: Andys blog-1
description: My article description
tags: 'andy,atharv
cover_image: ./assets/cat.jpeg
---

## Serious title

This post goes on dev and medium both

![and some pictures too](./assets/cat.jpeg)

image

image

https://github.com/ksingh7/rhd-blogs/blob/main/posts/assets/cat.jpeg

protiumx commented 2 years ago

Hi @ksingh7, thank you for sharing your ideas! I have already some of them on the TODO list https://github.com/protiumx/blogpub#todo

As far as I know, only Medium supports to post images. But I have also thought that github could be used to host the images. I'll close this when it's working.

ksingh7 commented 2 years ago

Hi @protiumx Thanks for your positive response.

yes you are right , github is used to host images.

Medium support images at both start of the blog (cover image) as well as the body of the blog. While Dev.to support images only in the body of the blog.

Currently, with your example, i am not able to add images to the body of the blog, because the image is not hosted on Github or any other publicly accessible path.

I will wait until you add support for image hosting via github.

protiumx commented 2 years ago

@ksingh7 update to v0.4.1 so you can use relative paths for any media

ksingh7 commented 2 years ago

@protiumx Fantastic, i tried it just now and i am happy to report that it works like a charm

Thanks a lot for fixing this at the speed of light.

image

protiumx commented 2 years ago

@ksingh7 awesome! I'm closing this. Please spread the word so I can get some help to add the rest of features mentioned on the TODO.