notion h tag series not being new line when using multiple h tags in a row

Open
#517 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

Start with react-notion-x/src/styles.css and reproduce the issue using the linked Notion page or blog page. Inspect the heading styles, including the reported display setting, and verify that consecutive h tags render on separate lines without regressing other heading layouts.

Written by the indexing model from the issue text.

Description

Description

Bug

I think there is a bug with showing multiple h tags in a row.

It looks like below.
Screenshot 2023-09-20 at 10 50 17

How to fix this problem

there is a css file in react-notion-x/src/styles.css

and i changed display: inline-block; to display: block;
Screenshot 2023-09-20 at 10 56 04

After Fix
Screenshot 2023-09-20 at 11 00 43

Notion Test Page ID

My Tech Blog which has the problem

LINK

My Notion Page linked with this blog page

LINK

Dominant language
TypeScript
Stars
5.4k
Forks
645
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NotionX/react-notion-x

All issues in NotionX/react-notion-x

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.