rdunk / sanity-blocks-vue-component

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

Block container option does not work #41

Open toddpadwick opened 1 year ago

toddpadwick commented 1 year ago

Hi there... I can't seem to get this feature to work. has this been removed since v3 released? I am using serializer to apply custom components to custom block types. These are all wrapped in a section tag. But I also want the Generic block text to be wrapped in sections too. How do I do this?

const serializers = {
    container: 'section',
    types: {
      gallery:Gallery,
      annotatedVisual:AnnotatedVisual,
      testimonial:Testimonial,
      videos:Videos,
    },
  }

Originally posted by @toddpadwick in https://github.com/rdunk/sanity-blocks-vue-component/issues/3#issuecomment-1477935592