dataview query excalidraw bug

This commit is contained in:
Zsolt Viczian
2022-10-08 20:28:45 +02:00
parent 98b39ab2b0
commit d92c95c3fd

View File

@@ -351,11 +351,16 @@ const tmpObsidianWYSIWYG = async (
let internalEmbedDiv: HTMLElement = el;
while (
!internalEmbedDiv.hasClass("dataview") &&
!internalEmbedDiv.hasClass("cm-preview-code-block") &&
!internalEmbedDiv.hasClass("cm-embed-block") &&
!internalEmbedDiv.hasClass("internal-embed") &&
internalEmbedDiv.parentElement
) {
internalEmbedDiv = internalEmbedDiv.parentElement;
}
if(!internalEmbedDiv.hasClass("internal-embed")) return; //https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/835
const attr: imgElementAttributes = {
fname: ctx.sourcePath,