Skip to content

Commit

Permalink
don't add the id to headings
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbenegas committed Oct 24, 2023
1 parent 46232c4 commit e7c2fb1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/basehub/src/react/rich-text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ const defaultHandlers: Handlers = {
</li>
);
},
h1: ({ children, id }) => <h1 id={id}>{children}</h1>,
h2: ({ children, id }) => <h2 id={id}>{children}</h2>,
h3: ({ children, id }) => <h3 id={id}>{children}</h3>,
h4: ({ children, id }) => <h4 id={id}>{children}</h4>,
h5: ({ children, id }) => <h5 id={id}>{children}</h5>,
h6: ({ children, id }) => <h6 id={id}>{children}</h6>,
h1: ({ children }) => <h1>{children}</h1>,
h2: ({ children }) => <h2>{children}</h2>,
h3: ({ children }) => <h3>{children}</h3>,
h4: ({ children }) => <h4>{children}</h4>,
h5: ({ children }) => <h5>{children}</h5>,
h6: ({ children }) => <h6>{children}</h6>,
hr: () => <hr />,
img: (props) => <img {...props} />,
video: (props) => <video {...props} />,
Expand Down

0 comments on commit e7c2fb1

Please sign in to comment.