Open johannesholmberg opened 4 years ago
My markdown files references images with a relative path like this ![](./img.jpg)
![](./img.jpg)
And I use marked to convert my markdown to HTML:
marked
feedItemOptions: node => ({ title: node.title, date: node.date, description: marked(node.content) })
The problem is that the generated HTML is referencing the relative path (./img.jpg) and not the actual path that Gridsome has generated for the image which should be something like this https://sitename.com/assets/images/img.jpg
Any ideas around this?
My markdown files references images with a relative path like this
![](./img.jpg)
And I use
marked
to convert my markdown to HTML:The problem is that the generated HTML is referencing the relative path (./img.jpg) and not the actual path that Gridsome has generated for the image which should be something like this https://sitename.com/assets/images/img.jpg
Any ideas around this?