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
EDIT: this is actually an issue with the fact that inline figures should not be converted to figures, but rather, they should remain images.
There is an issue whereby someone may want to add a link to an image or badge so that if someone clicks on an image, they are transported to another website.
This is a problem in the fix_figures() function where we assume that the parent element of the image is a paragraph. This needs to change the code on line 58 to explicitly search for the first ancestor that is a paragraph element for this image (though this may fail for inline images)
zkamvar
changed the title
markdown linked images have the href attribute added to the figure element
inline figures should not be converted to figures
Apr 27, 2023
EDIT: this is actually an issue with the fact that inline figures should not be converted to figures, but rather, they should remain images.
There is an issue whereby someone may want to add a link to an image or badge so that if someone clicks on an image, they are transported to another website.
This is an established practice as documented in the MDN docs
from carpentries/lesson-transition#65 (comment), @ostephens writes:
This is a problem in the
fix_figures()
function where we assume that the parent element of the image is a paragraph. This needs to change the code on line 58 to explicitly search for the first ancestor that is a paragraph element for this image (though this may fail for inline images)sandpaper/R/utils-xml.R
Lines 54 to 68 in 3d088c7
The text was updated successfully, but these errors were encountered: