logseq-anki-sync
logseq-anki-sync copied to clipboard
Hide how many bullet points the answer consists of
Describe the solution you'd like
I want to have a question with multiple bullet points as an answer, but not be able to know, when in anki, how many bullets the answer consists of.

Describe how it will help your workflow
- I break all, even single line answers, into multiple lines/bullets that follow some logic, because this is how I take notes and it helps me scan the answer more quickly. BUT knowing beforehand the number of bullets already clues me in.
- Also, I learn lists too (don't hate me) and I don't want to know beforehand just how many items.
Sorry if this is already doable! Tried the docs, but didn't find how to do it there.
Thank you! And thank you for the amazing plugin! :)
A solution:
- A setting:
- Something like "hide number of items in answer"... I dunno, naming is tricky ^^
- The code:
- It would check the recursive call to
getClozedContentHTMLandif level == 0wrap the entire parent<UL/>in a cloze deletion, while ommiting doing that for each item, of course.
- It would check the recursive call to
I'm not a coder, and I have exams coming up so right now I can't go through the docs and see how to implement the setting thing. I did code this into a clone of your repo and installed from there, and it does what I want.
Thank you again!
FIY this is the kind of things I created my own custom JS notetype for : https://github.com/thiswillbeyourgithub/Clozolkor
Edit: actually I managed to do it but the note type gets reset every time I update my cards so I can't use it as long as #157 is not fixed