marp-team / marp-cli

A CLI interface for Marp and Marpit based converters
MIT License
1.85k stars 105 forks source link

Allow async engine.render in converter #541

Closed GuillaumeDesforges closed 1 year ago

GuillaumeDesforges commented 1 year ago

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. 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.

GuillaumeDesforges commented 1 year ago

Don't know why it created 2 PRs.