rdunk / sanity-blocks-vue-component

[DEPRECATED] Vue component for rendering block content from Sanity
MIT License
71 stars 10 forks source link

<em> Not rendering in SanityContent #15

Open dylanmcgowan opened 3 years ago

dylanmcgowan commented 3 years ago

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 commented 3 years ago

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

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