Skip to content

Commit 0ae94c2

Browse files
ci: apply automated fixes
1 parent f5ab05a commit 0ae94c2

File tree

2 files changed

+468
-468
lines changed

2 files changed

+468
-468
lines changed

src/components/Markdown.tsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ import { Copy } from 'lucide-react'
2121
type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
2222

2323
const CustomHeading = ({
24-
Comp,
25-
id,
26-
children,
27-
...props
28-
}: HTMLProps<HTMLHeadingElement> & {
24+
Comp,
25+
id,
26+
children,
27+
...props
28+
}: HTMLProps<HTMLHeadingElement> & {
2929
Comp: HeadingLevel
3030
}) => {
3131
// Convert children to array and strip any inner anchor (native 'a' or MarkdownLink)
@@ -93,12 +93,12 @@ const markdownComponents: Record<string, React.FC> = {
9393
<iframe {...props} className="w-full" title="Embedded Content" />
9494
),
9595
img: ({
96-
alt,
97-
src,
98-
className,
99-
children: _,
100-
...props
101-
}: HTMLProps<HTMLImageElement>) => (
96+
alt,
97+
src,
98+
className,
99+
children: _,
100+
...props
101+
}: HTMLProps<HTMLImageElement>) => (
102102
<img
103103
{...props}
104104
src={src ? getNetlifyImageUrl(src) : undefined}
@@ -144,10 +144,10 @@ async function getMermaid(): Promise<Mermaid> {
144144
}
145145

146146
export function CodeBlock({
147-
isEmbedded,
148-
showTypeCopyButton = true,
149-
...props
150-
}: React.HTMLProps<HTMLPreElement> & {
147+
isEmbedded,
148+
showTypeCopyButton = true,
149+
...props
150+
}: React.HTMLProps<HTMLPreElement> & {
151151
isEmbedded?: boolean
152152
showTypeCopyButton?: boolean
153153
}) {
@@ -160,10 +160,10 @@ export function CodeBlock({
160160
const children = props.children as
161161
| undefined
162162
| {
163-
props: {
164-
children: string
165-
}
166-
}
163+
props: {
164+
children: string
165+
}
166+
}
167167

168168
const [copied, setCopied] = React.useState(false)
169169
const ref = React.useRef<any>(null)
@@ -184,7 +184,7 @@ export function CodeBlock({
184184

185185
React[
186186
typeof document !== 'undefined' ? 'useLayoutEffect' : 'useEffect'
187-
](() => {
187+
](() => {
188188
;(async () => {
189189
const themes = ['github-light', 'vitesse-dark']
190190
const normalizedLang = LANG_ALIASES[lang] || lang

0 commit comments

Comments
 (0)