Skip to content

Commit

Permalink
Merge pull request #14 from fabric-testbed/enhancement/linked-headings
Browse files Browse the repository at this point in the history
do not default markdown h1s, h2s to use linked headings
  • Loading branch information
suejinkim20 authored Aug 22, 2024
2 parents 3983e67 + a21599a commit 5e1cd7f
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 5e1cd7f

Please sign in to comment.