mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
Fix type
This commit is contained in:
@@ -61,7 +61,7 @@ export function Heading(props: BlockProps<DocumentBlockHeading>) {
|
||||
);
|
||||
}
|
||||
|
||||
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',
|
||||
|
||||
Reference in New Issue
Block a user