diff --git a/src/components/DocumentView/Heading.tsx b/src/components/DocumentView/Heading.tsx index f4655fd76..1e79d7fda 100644 --- a/src/components/DocumentView/Heading.tsx +++ b/src/components/DocumentView/Heading.tsx @@ -61,7 +61,7 @@ export function Heading(props: BlockProps) { ); } -const TAGS: { [type in DocumentBlockHeading['type']]: string } = { +const TAGS: { [type in DocumentBlockHeading['type']]: React.ElementType } = { // The h1 is reserved for the page title 'heading-1': 'h2', 'heading-2': 'h3',