kontent-ai / delivery-sdk-js

Kontent Delivery SDK for Javascript
https://kontent.ai
MIT License
50 stars 34 forks source link

Incorrect code example in README #350

Closed MilanLund closed 2 years ago

MilanLund commented 2 years ago

https://github.com/Kentico/kontent-delivery-sdk-js/blob/master/readme.md#resolving-rich-text-in-nodejs

There is a code example stating:

const html = await createAsyncRichTextHtmlResolver(asyncNodeParser).resolveRichText(data);

I think that is incorrect and should be:

const html = await createAsyncRichTextHtmlResolver(asyncNodeParser).resolveRichTextAsync(data);

Also, the JSON one above looks a bit suspicious. However, have not had a chance to actually test it.

Enngage commented 2 years ago

You're right, thanks!