cleanup markdown

This commit is contained in:
2026-06-18 01:32:05 +02:00
parent c1fe73dbd0
commit 73ba2b573d
11 changed files with 137 additions and 26 deletions

View File

@@ -8,6 +8,7 @@ import type { Control, FieldValues, Path } from "react-hook-form";
import { FormControl, FormField, FormItem, FormLabel } from "~/components/ui/form";
import { Button } from "~/components/ui/button";
import { cn } from "~/lib/utils";
import { ClientMdx } from "~/components/ClientMdx";
import {
InternalLinkTextarea,
type AutocompleteTriggerConfig,
@@ -81,7 +82,7 @@ export default function MdeFormField<T extends FieldValues>(params: {
),
preview: params.renderPreview
? (source) => params.renderPreview?.(source) ?? <></>
: undefined,
: (source) => <ClientMdx source={source} fallback={source} />,
}}
/>
</FormControl>