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
/
052-custom-marks.js
22 lines
(21 loc)
•
362 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
input
: { _
type
:
'block'
, children: [ { _key:
'a1ph4'
, _
type
:
'span'
, marks: [
'mark1'
], text:
'Lyra'
} ], markDefs: [ { _key:
'mark1'
, _
type
:
'highlight'
, thickness:
5
} ] }, output:
'<p><span style="border:5px solid;">Lyra</span></p>'
}