Open Angoooose opened 2 years ago
Thanks for the example. I will look info this.
After looking at this again, the function seems to be doing exactly as described in the docs: https://dijs.github.io/wiki/WikiPage.html#content
It parses the extracted content from sections on the page.
If you would like to transform the results into a string , i am sure that would not be difficult.
The method acts as it should, however its return type is incorrect. It's said to return a string while it actually returns an array.
(method) Page.content(): Promise<string>
Text content from page
@returns
@memberof — Page
Page.content()
is set to return a promise of a string, however this is not always the case. Sometimes (more often than not it seems) it returns a promise for an array of page sections.