logseq-anki-sync
logseq-anki-sync copied to clipboard
Block Reference Link not converted correctly
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:
- Create a card block with a block link with custom text.
- Export the card to anki.
- 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
I found a workaround by using the block ref url instead of just the reference...