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
When i write image like this  in markdown file , gatsby-remark-images not show captions (because source code only detect img.title),
(PS: I have enabled showCaptions in gatsby-config.js file)
so I have to write like <img src="../img.jpg" title="my image"></img> instead.
But when I switched to use gatsby-mdx later, <img src="../img.jpg" title="my image"></img> not worked (I watched output, src not replaced by processed images under static files, maybe a bug?) ,
so I have to write back  again,
but captions not showed in this way,
so can you change const showCaptions = options.showCaptions && node.title (source code ) to const showCaptions = options.showCaptions && (node.title || node.alt) or add something else to detect if image is written in  style and add captions to it?
The text was updated successfully, but these errors were encountered:
When i write image like this

in markdown file ,gatsby-remark-images
not show captions (because source code only detect img.title),(PS: I have enabled showCaptions in gatsby-config.js file)
so I have to write like
<img src="../img.jpg" title="my image"></img>
instead.But when I switched to use
gatsby-mdx
later,<img src="../img.jpg" title="my image"></img>
not worked (I watched output, src not replaced by processed images under static files, maybe a bug?) ,so I have to write back

again,but captions not showed in this way,
so can you change
const showCaptions = options.showCaptions && node.title
(source code ) toconst showCaptions = options.showCaptions && (node.title || node.alt)
or add something else to detect if image is written in
style and add captions to it?The text was updated successfully, but these errors were encountered: