darthmeme / gridsome-plugin-rss

Generate an RSS feed from your Gridsome data store
15 stars 11 forks source link

Relative image paths in markdown #18

Open johannesholmberg opened 4 years ago

johannesholmberg commented 4 years ago

My markdown files references images with a relative path like this ![](./img.jpg)

And I use marked to convert my markdown to HTML:

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?