Replies: 1 comment
-
Awesome! This resolved the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@zsviczian I finally had some time to look into why embedded drawings don't work reliably in kanban boards. The crux of the issue is that, for performance reasons, the Kanban plugin pre-renders markdown, then inserts it into the dom by cloning the rendered markdown node: https://github.com/mgmeyers/obsidian-kanban/blob/bffe5c088a0c4d91bb847427ed7f9a5658998fd4/src/components/MarkdownRenderer.tsx#L89
The problem is that there's a race condition between this and your markdownPostProcessor here:
obsidian-excalidraw-plugin/src/main.ts
Lines 225 to 247 in 784a7cb
The
async
function you have increateDiv
can finish execution after yourmarkdownPostProcessor
has run, which means that the kanban plugin will clone the node before the image is appended. If you movedconst img = await getIMG(attr);
outside of this function, and made the function synchronous, it should get drawings to load properly in kanban boards.Beta Was this translation helpful? Give feedback.
All reactions