UNPKG
@lyra/block-content-tests
Version:
latest (0.3.0)
0.3.0
0.2.5
0.2.4
0.2.0
Tests for shared block content rendering logic
vegapublish.com
VegaPublish/vega
@lyra/block-content-tests
/
fixtures
/
023-hard-breaks.js
19 lines
(18 loc)
•
356 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module.exports
=
{
input:
[ {
_type:
'block'
,
_key:
'bd73ec5f61a1'
,
style:
'normal'
,
markDefs:
[],
children:
[ {
_type:
'span'
,
text:
'A paragraph\ncan have hard\n\nbreaks.'
,
marks:
[] } ] } ],
output:
'<p>A paragraph<br/>can have hard<br/><br/>breaks.</p>'
}