Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

public: broken faq markup

Carl-Gerhard Lindesvärd6c55f7a75940
diff --git a/apps/public/src/components/faq.tsx b/apps/public/src/components/faq.tsx
index fc249792b..11b78f3a1 100644
--- a/apps/public/src/components/faq.tsx
+++ b/apps/public/src/components/faq.tsx
@@ -22,7 +22,10 @@ export const Faqs = ({ children }: { children: React.ReactNode }) => (
export const FaqItem = ({
question,
children,
-}: { question: string; children: string | React.ReactNode }) => (
+}: {
+ question: string;
+ children: string | React.ReactNode;
+}) => (
<AccordionItem
value={question}
itemScope
@@ -39,11 +42,13 @@ export const FaqItem = ({
itemType="https://schema.org/Answer"
className="prose"
>
- {typeof children === 'string' ? (
- <Markdown>{children}</Markdown>
- ) : (
- children
- )}
+ <div itemProp="text">
+ {typeof children === 'string' ? (
+ <Markdown>{children}</Markdown>
+ ) : (
+ children
+ )}
+ </div>
</AccordionContent>
</AccordionItem>
);