logseq-anki-sync icon indicating copy to clipboard operation
logseq-anki-sync copied to clipboard

Block Reference Link not converted correctly

Open MoritzBoehme opened this issue 3 years ago • 1 comments

Describe the bug Creating a anki card from a block containing a markdown link to a block like this

- Test #card  
	- [Test](63624141-ba8e-4063-ae83-a5252f922ce8)

results in this anki card:

<ul class="children-list"><li class="children">
      <p>Test <a class="tag">card</a>
        <br>
</p>
    
<ul class="children-list left-border">
<li class="children">{{c1:: 
      <p><a href="#63623f20_9026_4a1d_a8d8_94ea1038f86d">63623f20-9026-4a1d-a8d8-94ea1038f86d</a></p>
     }}</li></ul></li></ul>

where the link text is just the uuid of the block.

Steps to Reproduce: Steps to reproduce the behavior:

  1. Create a card block with a block link with custom text.
  2. Export the card to anki.
  3. See error in created anki card.

Expected behavior The link for the anki card should have the same text as the original markdown link

Device Information (please complete the following information):

  • OS with version: NixOS 22.11.20221021.93e0ac1 (Raccoon) x86_64
  • Logseq Anki Sync Plugin Version: 3.2.4
  • Anki Version: 2.1.15 (442df9d6)
  • AnkiConnect Addon Version: 2.1.0
  • Logseq Version: 0.8.9

MoritzBoehme avatar Nov 02 '22 11:11 MoritzBoehme

I found a workaround by using the block ref url instead of just the reference...

MoritzBoehme avatar Nov 02 '22 11:11 MoritzBoehme