You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What pain point are you perceiving?.
marked provides an async option to enable asynchronous walkTokens. @types/marked for version 4.x provides the following overload which looks perfectly logical/ reasonable:
Describe the solution you'd like
When a user instructs marked to render async: true the API should consistently return a Promise, regardless of whether there is an async walkTokens extension included. Additionally, the docs should be updated to "The return value should be a promise for asynchronous walkTokens functions.
Tested using the CJS build of marked 4.2.12
The text was updated successfully, but these errors were encountered:
What pain point are you perceiving?.
marked provides an
async
option to enable asynchronouswalkTokens
.@types/marked
for version 4.x provides the following overload which looks perfectly logical/ reasonable:However, the
async
true option only returns a promise if there is an async walkTokens.Compare:
Additionally, in the docs it is said under the Walk Tokens section:
Evidently, this is not (or no longer) true
Describe the solution you'd like
When a user instructs marked to render
async: true
the API should consistently return a Promise, regardless of whether there is an async walkTokens extension included. Additionally, the docs should be updated to "The return value should be a promise for asynchronous walkTokens functions.Tested using the CJS build of marked 4.2.12
The text was updated successfully, but these errors were encountered: