danielmahon / gatsby-remark-relative-images

Convert markdown image src(s) to be relative for gatsby-remark-images.
https://www.npmjs.com/package/gatsby-remark-relative-images
BSD Zero Clause License
79 stars 29 forks source link

Strict mode for invalid image paths #49

Open wilitp opened 3 years ago

wilitp commented 3 years ago

I've encountered that if I wanted to throw an exception detailing:

I can not get the latter, given that the node created for an invalid path is null when querying it.

Is there any way one can get the string for the invalid path? Is there any way for the plugin to be strict about the validity of every path?