Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
vueProps = data.node
sanityProps._sanityProps = {
node: data.node,
options: data.options
}
}
const props = objectAssign({}, vueProps, sanityProps)
data = {props}
}
return createElement(tag, data, childNodes)
}
const {defaultSerializers, serializeSpan} = getSerializers(renderNode)
return blocksToNodes(renderNode, options, defaultSerializers, serializeSpan)
}
function ImageSerializer(props) {
const img = h('img', {
attrs: {
src: getImageUrl(props)
}
})
return props.isInline ? img : h('figure', null, img)
}
const React = require('react')
const {getSerializers} = require('@sanity/block-content-to-hyperscript/internals')
const renderNode = React.createElement
const {defaultSerializers, serializeSpan} = getSerializers(renderNode)
module.exports = {
serializeSpan,
serializers: defaultSerializers,
renderProps: {nestMarks: true}
}