Releases: micnews/article-json-to-apple-news
Releases · micnews/article-json-to-apple-news
v4.0.0
What's different?
This release updates the way the body of the article is formatted. In previous versions, the article body was placed in a container component, this release gets rid of the container and moves all of those nested components to the top level.
Before
components: [
header,
{
role: 'container',
components: [...articleComponents]
}
]
Now
components: [
header,
...articleComponents
]
Why?
As of the current (Nov 1 2016) Apple News docs You can't place ads within child components, they must be a top level component. By having all the article elements in the top level, it lets us be more flexible with the positioning of ads (In between paragraphs for instance).
https://developer.apple.com/library/content/documentation/General/Conceptual/Apple_News_Format_Ref/BannerAdvertisement.html