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
EmbedAPI: clean images (src) properly from inside a tooltip (#9337)
* EmbedAPI: small refactor
- rename `clean_links` as `clean_references`
- rename `URLData.href` as `URLData.ref`
This is done because this function will clean `a.href` and also `img.src` now.
* EmbedAPI: clean images (src) properly from inside a tooltip
When returning the content to be injected in a tooltip, besides cleaning the
`a.href` we are also cleaning the `img.src` to make them absolute and render the
images properly.
See readthedocs/sphinx-hoverxref#200
* EmbedAPI: use absolute URL on HTML data for tests
These `src=` fields are not cleaned by `clean_references`.
0 commit comments