publisherDocumentContentSetSectionsV2()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Writes sections back into document content, in the shape the content was read in.
export declare function publisherDocumentContentSetSectionsV2(input: IPublisherDocumentContentSetSectionsOptionsV2): PublisherDocumentContentV2;
Parameters
Parameter | Type | Description |
|---|---|---|
{ content, sections, } | (not declared) | |
input |
Returns
Remarks
The result holds sections when the content held sections, when there is more than one section, or when the only section has a title or description. Otherwise it holds pages, and the section’s id is dropped.