hi!
I suppose this is due to using the waitForAsyncHelper inside the docxImage
yes, this is the main reason, we want that user is able to get src image from async executions, like HTTP requests. so that waitForAsyncHelper, makes this to work:
{{docxImage src=(getImageFromServer) ...}} async function getImageFromServer () { const result = await makeYourRequestHere() // result should be a base64 string representation of the image return result }Would it be reasonable to rely on this feature of the 'src' property, or is it better to strictly follow the documentation and provide a string value?
we expect this to work correctly when the async execution happens between handlebars helpers, in the example, getImageFromServer is an async handlebars helper, so this is expected to work.
as long as you do the async work from an async handlebars helper, it will work.
what is your use case? or what code are you trying to make it work by passing a promise?