refactor: improve home feed parsing (#234)

* chore: update tests

* style: format code

* docs: update API ref
This commit is contained in:
LuanRT
2022-11-12 01:31:11 -03:00
committed by GitHub
parent 95ff1e6c5e
commit da517fe6d1
11 changed files with 89 additions and 20 deletions

View File

@@ -12,8 +12,8 @@ class RichGrid extends YTNode {
super();
// XXX: we don't parse the masthead since it is usually an advertisement
// XXX: reflowOptions aren't parsed, I think its only used internally for layout
this.header = Parser.parse(data.header);
this.contents = Parser.parse(data.contents);
this.header = Parser.parseItem(data.header);
this.contents = Parser.parseArray(data.contents);
}
}