From 231f5fb5a8e30e361c04b8b0ebc2b8d8fd700f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Poul=20Kjeldager=20S=C3=B8rensen?= Date: Thu, 12 Sep 2024 10:32:18 +0200 Subject: [PATCH] fix: support html on headline --- packages/core/src/components/heading/Heading.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/core/src/components/heading/Heading.tsx b/packages/core/src/components/heading/Heading.tsx index f02df63..638867f 100644 --- a/packages/core/src/components/heading/Heading.tsx +++ b/packages/core/src/components/heading/Heading.tsx @@ -21,6 +21,17 @@ export const Heading: React.FC = ({ children, label, style = {} }: margin: 0 }; + + if (typeof (children) === "string") { + + return ( +

') }} + /> + ); + } + return (

{children}