Skip to content

The heading scroll top issue fix #1047

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/Markdown.res
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module H2 = {
@react.component
let make = (~id, ~children) => <>
// Here we know that children is always a string (## headline)
<h2 id className="group mt-16 mb-3 hl-3 scroll-mt-24">
<h2 id className="group mt-16 mb-3 hl-3 scroll-mt-32">
children
<span className="ml-2">
<Anchor id />
Expand All @@ -148,7 +148,7 @@ module H2 = {
module H3 = {
@react.component
let make = (~id, ~children) =>
<h3 id className="group mt-8 mb-4 hl-4 scroll-mt-24">
<h3 id className="group mt-8 mb-4 hl-4 scroll-mt-32">
children
<span className="ml-2">
<Anchor id />
Expand All @@ -159,7 +159,7 @@ module H3 = {
module H4 = {
@react.component
let make = (~id, ~children) =>
<h4 id className="group mt-8 hl-5 scroll-mt-24">
<h4 id className="group mt-8 hl-5 scroll-mt-32">
children
<span className="ml-2">
<Anchor id />
Expand Down