nih-cfde / the-fair-cookbook

NIH CFDE project for creating a collection of FAIRification recipes
https://cfde-published-documentation.readthedocs-hosted.com/en/latest/
2 stars 6 forks source link

Relative markdown images #46

Closed u8sand closed 2 years ago

u8sand commented 4 years ago

At some point, standard markdown relative image references were replaced with HTML defined absolute links to master branch. https://github.com/nih-cfde/the-fair-cookbook/commit/0d437959c0794a993e278f119b10608abb42e59e

This makes it challenging to review images in place, i.e. on the dev branch, locally, in a pull request or at a particular moment in time. Furthermore, pixel-perfect image sizing may cause issues on certain displays (particularly small or mobile displays).

Might it be possible to construct the absolute links from the relative links and inject a CSS class into the img elements produced by the markdown renderer at compile time instead of maintaining absolute links?