PDF export don't wait for async render

I’m using a plugin named “Obsidian Typst” that uses asynchronous HTMLElement.
But, when exporting to pdf, only the one that managed to get drawn are exported.
You can reproduce the test by developping a plugin that has async “HTMLElement” or by using obsidian-typst with a file that has a lot of math equation.

It’s hard to tell if it is a bug, or not (sorry if my new topic isn’t a bug). But it would be nice to have a little API for PDF exporting, because for now I don’t know if there is a way to fix this problem.

@cyp Have you solved the problem? Having the same problem with react components.

No, still hoping this problem is fixed someday

I’ve just taken a quick look over the code of the plugin, and I think this is essentially the same problem as the one discussed here:

This is not Obsdiain’s bug. Basically, I think the problem is that the plugin author didn’t mark the markdown code block post-processor as async.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.