feat!: support scroll-margin / scroll-padding
Replaces the JS-based scroll offset logic with native CSS `scroll-margin-top`. The default theme sets it on headings using `--vp-nav-height` and `--vp-layout-top-height`, and `scrollTo` now uses `scrollIntoView` which respects it natively.
BREAKING CHANGE: `scrollOffset` from config is removed. Users wanting to customize scroll offset should customize `scroll-margin-top` via CSS instead. `smoothScroll` support from `router.go` is also removed as it didn't work as expected for most users. Users wanting smooth scrolling should set `scroll-behavior: smooth` in CSS, ideally inside a `@media (prefers-reduced-motion: no-preference)` block.last month6cce766
fix: use resolveDynamicComponent instead of resolveComponent
x-ref: https://github.com/vuejs/vitepress/pull/5176#issuecomment-4240841782last month9da1e3e
feat: allow VPContent to use custom components (#5176)last monthc0b38d5
fix(theme): prevent `sub` and `sup` elements from affecting line height
based on normalize.css
closes #5173last month19357f9