How to use the @sanity/block-content-to-hyperscript/internals.getImageUrl function in @sanity/block-content-to-hyperscript

To help you get started, we’ve selected a few @sanity/block-content-to-hyperscript examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rdunk / sanity-blocks-vue-component / src / serializers.js View on Github external
function ImageSerializer(props) {
    const img = h('img', {
      attrs: {
        src: getImageUrl(props)
      }
    })
    return props.isInline ? img : h('figure', null, img)
  }

@sanity/block-content-to-hyperscript

Function for transforming Sanity block content to HyperScript

MIT
Latest version published 3 years ago

Package Health Score

50 / 100
Full package analysis