Skip to content

Commit

Permalink
do not default markdown h1s, h2s to use linked headings
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwatson committed Aug 22, 2024
1 parent 3983e67 commit a21599a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/markdown/typography.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
/* eslint-disable no-unused-vars */
import { Typography } from '@mui/joy'
import { LinkedHeading } from '@components/linked-heading'

// heading 1
export const h1 = ({ node, ...props }) => (
<LinkedHeading level="h1" { ...props } />
<Typography level="h1" { ...props } />
)

// heading 2
export const h2 = ({ node, ...props }) => (
<LinkedHeading level="h2" { ...props } />
<Typography level="h2" { ...props } />
)

// heading 3
Expand Down

0 comments on commit a21599a

Please sign in to comment.