debanjandhar12 / logseq-anki-sync

An logseq to anki syncing plugin with superpowers - image occlusion, card direction, incremental cards, and a lot more.
GNU Affero General Public License v3.0
466 stars 34 forks source link

Image occlusion does not work properly if the image has space characters in the file name #218

Closed stemsteamcoder closed 1 year ago

stemsteamcoder commented 1 year ago

Describe the bug Image occlusion masks do not appear in the Anki card if the image file name in Logseq has space characters. But the base image itself appears.

Steps to Reproduce: Steps to reproduce the behavior:

  1. Have a image with a space character in the file name.
  2. Attach this image in a block.
  3. Create an image occlusion card inside Logseq with the "Image Occlusion" context menu option in the block created in the previous steps.
  4. Sync to Anki so the card is created in Anki.
  5. Visualize the created card in Anki either through preview or through review/study.
  6. See that no occlusion masks appear on the image.

Expected behavior Image masks appear in the Anki card exactly as they were placed in the Logseq occlusion editor.

Developer console screenshot: image

Device Information (please complete the following information):