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
/
008-plain-header-block.js
18 lines
(17 loc)
•
281 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports
=
{
input:
{
_key:
'R5FvMrjo'
,
_type:
'block'
,
children:
[ {
_key:
'cZUQGmh4'
,
_type:
'span'
,
marks:
[],
text:
'Dat heading'
} ],
markDefs:
[],
style:
'h2'
},
output:
'<h2>Dat heading</h2>'
}