Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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}
}