Closed vitaly closed 2 years ago
not sure if problem with dataview or admonition. the following code works when running from dataview codeblock, but when running from dataview js, it doesn't create an embed, just prints 'test.png' instead:
dv.app.plugins.plugins["obsidian-admonition"].postprocessor( "note", "![[test.png]]", dv.container.createDiv() );
This is because Dataview runs their post processor asynchronously, I believe. Embeds must be synchronous.
not sure if problem with dataview or admonition. the following code works when running from dataview codeblock, but when running from dataview js, it doesn't create an embed, just prints 'test.png' instead: