Create a Zod schema that transforms markdown text into a multilingual object with both escaped text and rendered HTML.

  • Parameters

    • language: string

      Language code for the markdown

    • OptionalrenderLocale: string

      Optional locale for rendering (defaults to language)

    Returns ZodPipe<
        ZodString,
        ZodTransform<
            { html: MultilingualString; text: MultilingualString },
            string,
        >,
    >

    Zod schema producing an object with text and html properties