The whole context is async already, but the engine.render method is not treated as possibly async.
Using await here allows to use either non-async and async render method, which is helpful for custom engines.
I have checked that all tests pass using yarn test.
Related to discussion https://github.com/orgs/marp-team/discussions/466
The whole context is async already, but the
engine.render
method is not treated as possibly async. Usingawait
here allows to use either non-async and async render method, which is helpful for custom engines.I have checked that all tests pass using
yarn test
.