You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All images are saved in /static/img and referenced in markdown as ![](/static/img/imagepaste.png)
Is it possible to make this plugin work such that in any "level" of markdown file in the content directory, the image is pasted in the /static/img directory?
The text was updated successfully, but these errors were encountered:
I see your proposal. Looks like you need a per project image folder, not sure how this goes along with current design. Any API you imagine for that use case?
HI @MRog40 , I have similar situation on Jekylly and I fonud a way to work greate.
Just apply this configuration .
let cwd = $PWD . 'static/img'
let g:mdip_imgdir_absolute = cwd
let g:mdip_imgdir_intext = '/static/img'
When you type blog1/test1. It will show as ![blog1/test1](/static/img/blog1/test1.png) in md file and save the picture in $PWD/static/img/blog1/test1.png . The $PWD is where you open vim and can be changed by :cd. It will not change if you just move to another file. So if you just open you vim in the root dir of Hugo and everything will be fine.
I use the static site generator Hugo. The inside of a Hugo site looks like this:
All images are saved in
/static/img
and referenced in markdown as![](/static/img/imagepaste.png)
Is it possible to make this plugin work such that in any "level" of markdown file in the content directory, the image is pasted in the /static/img directory?
The text was updated successfully, but these errors were encountered: