diff --git a/app/routes/_gcn.circulars.$circularId.($version)/Body.tsx b/app/routes/_gcn.circulars.$circularId.($version)/Body.tsx index 7c11069ba..fa9924104 100644 --- a/app/routes/_gcn.circulars.$circularId.($version)/Body.tsx +++ b/app/routes/_gcn.circulars.$circularId.($version)/Body.tsx @@ -44,12 +44,11 @@ function LinkWrapper({ } export function MarkdownBody({ - className, children, + ...props }: { - className?: string children: string -}) { +} & Omit) { const { result } = unified() .use(remarkParse) .use(remarkGfm) @@ -68,16 +67,16 @@ export function MarkdownBody({ }) .processSync(children) - return
{result}
+ return
{result}
} export function PlainTextBody({ className, children, + ...props }: { - className?: string children: string -}) { +} & Omit) { const tree = u('root', [u('code', children)]) const { result } = unified() @@ -93,6 +92,8 @@ export function PlainTextBody({ .processSync() return ( -
{result}
+
+ {result} +
) } diff --git a/app/routes/_gcn.circulars.edit.$circularId/RichEditor/Tabs.tsx b/app/routes/_gcn.circulars.edit.$circularId/RichEditor/Tabs.tsx index dd2496699..16bce3291 100644 --- a/app/routes/_gcn.circulars.edit.$circularId/RichEditor/Tabs.tsx +++ b/app/routes/_gcn.circulars.edit.$circularId/RichEditor/Tabs.tsx @@ -20,31 +20,43 @@ export function Tab({ ...props }: { defaultSelected?: boolean } & Omit< Parameters[0], - 'outline' | 'type' + 'outline' | 'role' | 'type' >) { const [checked, setChecked] = useExclusiveOption(defaultChecked) return (