jasonwilliams / anki

Anki VSCode Plugin
MIT License
275 stars 31 forks source link

Cloze not working #26

Closed imalightbulb closed 3 years ago

imalightbulb commented 3 years ago

I created a markdown file with the content

## A bit like {{c1::this}}.

However, this error occurs when I try to send to deck.

image

jasonwilliams commented 3 years ago

@imalightbulb what version does this happen on? Does it happen on a previous version?

imalightbulb commented 3 years ago

It happened on the latest version, v1.0.2 image

jasonwilliams commented 3 years ago

@imalightbulb could you confirm it doesn’t happen on v1.0.1 ?

imalightbulb commented 3 years ago

Can I degrade the extension? (to v1.0.1?)

jasonwilliams commented 3 years ago

In VSCode there’s an option to install a different version yes

imalightbulb commented 3 years ago

Hmmm.... the same error happens in on v1.0.1 as well

imalightbulb commented 3 years ago

The cloze deletion doesn't work after v0.3.0

jasonwilliams commented 3 years ago

@imalightbulb would you be willing to work on the fix? I think the regression was introduced here https://github.com/jasonwilliams/anki/commit/9e610a14f612f5b5932cd4ff29ec4df75898ac20

If not I’m not sure when I’ll get round to it.

Could potentially add a check here for Cloze syntax https://github.com/jasonwilliams/anki/commit/9e610a14f612f5b5932cd4ff29ec4df75898ac20#diff-4364460fd94d2a6efb9ac905b4580256b4a7ad0789c63efcf2f8ac0ce7f37061R47

imalightbulb commented 3 years ago

Sorry but I don't know much about programming :sweat_smile:

jasonwilliams commented 3 years ago

No worries I’ll see what I can do

jasonwilliams commented 3 years ago

Fixed in https://github.com/jasonwilliams/anki/releases/tag/v1.0.3

imalightbulb commented 3 years ago

Thanks! :100: