sanity-blocks-vue-component icon indicating copy to clipboard operation
sanity-blocks-vue-component copied to clipboard

<em> Not rendering in SanityContent

Open dylanmcgowan opened this issue 4 years ago • 1 comments

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?

dylanmcgowan avatar Dec 25 '20 00:12 dylanmcgowan

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

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

michaelburtonray avatar Jun 24 '21 12:06 michaelburtonray