Skip to content

String input is rendered for markdown field #49

@DmitriyMaltsevTakeda

Description

@DmitriyMaltsevTakeda

I'm using https://www.sanity.io/plugins/sanity-plugin-markdown for rendering Markdown inputs. To make them translatable, I added fieldTypes: ['string', 'markdown'] to Sanity config.

I'm assuming I have to use internationalizedArrayMarkdown as type when I create schemas for translatable Markdown fields now, although I didn't find any examples in the docs for custom input types.

I'm expecting to see a markdown input, but I still get a regular string input for internationalizedArrayMarkdown fields:

image

So my question is: is it possible at all to render custom field types with this plugin? If yes, what could I be doing wrong?

Edit: I tried using text and internationalizedArrayText just to check that it's possible to render any input fields other than a regular string inputs, and it works, I'm getting a nice textarea. So this problem must be only for rendering custom fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions