Skip to content
Snippets Groups Projects
Commit ffbfa512 authored by Stekelenburg, A.V. (Alexander, Student )'s avatar Stekelenburg, A.V. (Alexander, Student )
Browse files

Make figure links in user manual point to top of image

parent a29090e3
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,10 @@ body#md {
padding-left: 2px;
}
.md a.target {
display:block;
}
/* Dark mode with side TOC on screen */
@media screen {
.md svg.diagram {
......
......@@ -157,6 +157,11 @@ window.markdeepOptions = {onLoad: function() {
document.getElementById("date").innerText = new Date().toISOString().split("T")[0];
document.querySelectorAll("div.image").forEach(div => {
div.replaceChild(div.children[0].children[0], div.children[0]);
const caption = div.querySelector("span.imagecaption");
if (caption !== null) {
const target = caption.querySelector("a.target");
div.parentElement.insertBefore(target, div);
}
});
}};
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment