@lyra/block-content-tests
Version:
Tests for shared block content rendering logic
31 lines (30 loc) • 590 B
JavaScript
module.exports = {
input: {
_key: 'R5FvMrjo',
_type: 'block',
children: [
{
_key: 'cZUQGmh4',
_type: 'span',
marks: ['strong'],
text: 'A word of '
},
{
_key: 'toaiCqIK',
_type: 'span',
marks: ['strong', 'em'],
text: 'warning;'
},
{
_key: 'gaZingA',
_type: 'span',
marks: [],
text: ' Lyra is addictive.'
}
],
markDefs: [],
style: 'normal'
},
output:
'<p><strong>A word of <em>warning;</em></strong> Lyra is addictive.</p>'
}