File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export function atom(channel, data) {
117
117
if ( datum . tags ) {
118
118
let offset = - 1
119
119
while ( ++ offset < datum . tags . length ) {
120
- items . push ( x ( 'category' , { term : String ( datum . tags [ offset ] ) } ) )
120
+ children . push ( x ( 'category' , { term : String ( datum . tags [ offset ] ) } ) )
121
121
}
122
122
}
123
123
Original file line number Diff line number Diff line change 47
47
"remark-cli" : " ^11.0.0" ,
48
48
"remark-preset-wooorm" : " ^9.0.0" ,
49
49
"type-coverage" : " ^2.0.0" ,
50
- "typescript" : " ^4 .0.0" ,
50
+ "typescript" : " ^5 .0.0" ,
51
51
"xast-util-to-xml" : " ^3.0.0" ,
52
52
"xo" : " ^0.53.0"
53
53
},
Original file line number Diff line number Diff line change @@ -1998,6 +1998,18 @@ test('atom', () => {
1998
1998
name : 'title' ,
1999
1999
attributes : { } ,
2000
2000
children : [ { type : 'text' , value : 'c' } ]
2001
+ } ,
2002
+ {
2003
+ type : 'element' ,
2004
+ name : 'category' ,
2005
+ attributes : { term : 'x' } ,
2006
+ children : [ ]
2007
+ } ,
2008
+ {
2009
+ type : 'element' ,
2010
+ name : 'category' ,
2011
+ attributes : { term : 'y' } ,
2012
+ children : [ ]
2001
2013
}
2002
2014
]
2003
2015
} ,
You can’t perform that action at this time.
0 commit comments