seothemes / markdown-editor

Replaces the default WordPress editor with a Markdown editor for your posts and pages.
GNU General Public License v2.0
22 stars 4 forks source link

Add option to insert images properly #10

Open bviktor opened 6 years ago

bviktor commented 6 years ago

Currently this plugin doesn't change the way media is added, i.e. it's inserted into posts as <img src....

But Markdown syntax should be:

![](foobar.png)

Also, the way wordpress adds images is stupid, coz it includes the full URL, which will break if you ever change your domain name, and then you have to replace ALL image links in ALL posts. Instead, it should be like:

![](/wp-content/uploads/2018/08/Clipboard01-6.png)

This way the images will load properly, regardless of domain name and protocol (HTTP / HTTPS)

Please add this.