Open JochenHiller opened 5 years ago
hm i am not sure how to fix this properly. its basically unrelated to the plugin and has something to do with this https://github.com/JochenHiller/jochenontour/blob/master/src/tools.js#L53
not sure why there is a
tag around it though :/ i ll try and investigate a bit more but maybe you can tell gatsby image not to render a div
Thanks for the hints. I try to understand better. There is the Tag
property where the rendering tag can be defined. I will search around that a bit.
I am using
<rehype-image>
and saw in Chrome Browser console this warning:When I change it to
<rehype-image src="someimage.jpg" />
(no child element) it does NOT add a<p>
around the<div>
section.Can this somehow be avoided? I checked the code but do not have any idea how to change that.
I used that to add a caption to the image (e.g.
<rehype-image src="someimage.jpg">Here is my caption text</rehype-image>
). Any other proposal how to to that?(e.g. see https://github.com/JochenHiller/jochenontour/blame/master/src/md/mongolia2020/2019-08-04-decision/index.md#L78)