I'm using anchor links in my .markdown document like so:
# {#infrared}
This works fine but I wanted to implement the following CSS so that the link scrolls to the middle of the page and not at the top:
.anchor {
position: absolute;
transform: translateY(-50vh);
}
How can I add the class anchor to my anchor link in the markdown document?