Skip to content

Commit b4f0235

Browse files
authored
Merge pull request #1435 from prezly/feature/dev-22697-json-feed-header-tags-mismatch
[DEV-22697] Fix - Align story heading levels between rendered page and JSON output
2 parents adad7dc + 3e2371d commit b4f0235

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/RichText/Heading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export function Heading({ node, children }: Props) {
2020
});
2121

2222
if (node.type === HeadingNode.Type.HEADING_ONE) {
23-
return <h2 className={className}>{children}</h2>;
23+
return <h3 className={className}>{children}</h3>;
2424
}
2525

26-
return <h3 className={className}>{children}</h3>;
26+
return <h4 className={className}>{children}</h4>;
2727
}

0 commit comments

Comments
 (0)