lynchjames / obsidian-mind-map

An Obsidian plugin for displaying markdown notes as mind maps using Markmap.
MIT License
1.06k stars 74 forks source link

Bug: Screenshot Feature doesn't work #9

Closed spidersouris closed 3 years ago

spidersouris commented 3 years ago

Hello there,

When trying the screenshot feature in the latest version, it doesn't work. Nothing gets pasted in my clipboard, and the follow error happens in the console:

copy-image.ts:33 Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
    at drawInlineSVG (eval at <anonymous> (app://obsidian.md/app.js:1:685677), <anonymous>:32205:17)
    at generateImage (eval at <anonymous> (app://obsidian.md/app.js:1:685677), <anonymous>:32199:12)
    at copyImageToClipboard (eval at <anonymous> (app://obsidian.md/app.js:1:685677), <anonymous>:32183:15)
    at eval (eval at <anonymous> (app://obsidian.md/app.js:1:685677), <anonymous>:32254:47)
    at HTMLDivElement.<anonymous> (app://obsidian.md/app.js:1:476743)
lynchjames commented 3 years ago

Would you be able to share the contents of the note you are using to generate the mind map? There may be characters in the mind map text items that could cause this error.

lynchjames commented 3 years ago

This should be fixed in 1.0.3.