Skip to content
This repository was archived by the owner on Aug 18, 2023. It is now read-only.

<em> Not rendering in SanityContent #15

Open
dylanmcgowan opened this issue Dec 25, 2020 · 1 comment
Open

<em> Not rendering in SanityContent #15

dylanmcgowan opened this issue Dec 25, 2020 · 1 comment

Comments

@dylanmcgowan
Copy link

Hello there,<em> marks are not rendering in SanityContent. Is this intentional? In src/sanity-module.ts there is code that sets it as default.. but on the front end you have to explicitly set em in the marks object. strong is working as intended..

Current work around is:

data() {
    return {
      serializers: {
        types: ...,
        marks: {
          em: 'em',
        },
      },
    }
  },

Am I doing something wrong?

@michaelburtonray
Copy link

@dylan are you defining the block type in your serializer?

For me, marks disappeared when I was defining the block type.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants