umputun / remark42

comment engine
https://remark42.com
MIT License
4.84k stars 376 forks source link

[site] fix: anchor offset #1637

Closed Jaskon closed 1 year ago

Jaskon commented 1 year ago

Anchor offset when navigating through an anchor. It's now scrolling a bit further, to make a section-header also visible on the screen. (Previously, selected section-header was hidden under the global page-header)

image

Unfortunately, I don't know how to get rid of the outline, when navigation through an anchor, as it's applied to the parent of styled element. The only way I see here - modify markdown-it-anchor sources (or use some different approach here)