reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
897 stars 87 forks source link

using `{curly brackets}` in markdown code format will cause parsing confusion and generate an additional Cloz card #211

Open snownstone opened 8 months ago

snownstone commented 8 months ago

NOTE: Do you have the last version of the plugin? If not that's probably the problem Yes, V1.6.5 installed

Describe the bug First, thank you for your great work!

The problem is when using {curly brackets} in markdown code, it will lead to parsing confusion and result in the generation of an additional Cloze card, which is unintended.

For example, a Python statement like return f"Hello, {name}!" in markdown code format could cause the plugin to create two cards in Anki: one correct card and another unnecessary Cloze card.

Additional context This problem seems to be associated with issue 161.

github-actions[bot] commented 8 months ago

Thank you for taking the time to report the issue and help me to make the project better! 🙂