Skip to content

Commit 1f97719

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
style(files): name Markdown PDF props
1 parent efa1030 commit 1f97719

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

apps/sim/app/api/files/export/[id]/markdown-pdf.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,15 +402,13 @@ function renderBlock(token: Token, images: ReadonlyMap<string, PdfImage>, key: s
402402
}
403403
}
404404

405-
function MarkdownDocument({
406-
markdown,
407-
title,
408-
images,
409-
}: {
405+
interface MarkdownDocumentProps {
410406
markdown: string
411407
title: string
412408
images: ReadonlyMap<string, PdfImage>
413-
}) {
409+
}
410+
411+
function MarkdownDocument({ markdown, title, images }: MarkdownDocumentProps) {
414412
const tokens = marked.lexer(markdown, { gfm: true })
415413
return (
416414
<Document creator='Sim' language='en' title={safeText(title)}>

0 commit comments

Comments
 (0)