File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -257,20 +257,23 @@ export let defaultTransformers = {
257
257
* @type {Transformer<ContentTree.transit.Flourish | ContentTree.transit.Link> }
258
258
*/
259
259
[ ContentType . content ] ( content ) {
260
+ const id = content . attributes . url ?? "" ;
261
+ const uuid = id . split ( "/" ) . pop ( ) ;
262
+
260
263
if ( content . attributes [ "data-asset-type" ] == "flourish" ) {
261
264
return /** @type {ContentTree.transit.Flourish } */ ( {
262
265
type : "flourish" ,
266
+ id : uuid ,
263
267
flourishType : content . attributes [ "data-flourish-type" ] || "" ,
264
268
layoutWidth : toValidLayoutWidth (
265
269
content . attributes [ "data-layout-width" ] || ""
266
270
) ,
267
271
description : content . attributes [ "alt" ] || "" ,
268
272
timestamp : content . attributes [ "data-time-stamp" ] || "" ,
269
- // fallbackImage -- TODO should this be external in content-tree?
273
+ children : null ,
270
274
} ) ;
271
275
}
272
- const id = content . attributes . url ?? "" ;
273
- const uuid = id . split ( "/" ) . pop ( ) ;
276
+
274
277
return /** @type {ContentTree.transit.Link } */ ( {
275
278
type : "link" ,
276
279
url : `https://www.ft.com/content/${ uuid } ` ,
You can’t perform that action at this time.
0 commit comments