reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
908 stars 88 forks source link

Cloze will be recognized by this plugin even when the `==` delimiters are inside HTML tags. #219

Open kindaro opened 4 hours ago

kindaro commented 4 hours ago

A piece of text enclosed in <!-- and --> brackets will be recognized as a comment by Obsidian even when these brackets are positioned on lines of their own. However, flashcards-obsidian will still create a cloze card. Similarly for other tags.

Create a note and add this text:

<!--
==not a cloze==
-->

Then run the Obsidian command Flashcards: Generate for the current file.

You will see a card created with a cloze saying «not a cloze».

Here is a more interesting example:

<!--
==not a cloze --> <iframe src="not a cloze either==">
</iframe>

In this case, a nonsensical cloze card will be created.

github-actions[bot] commented 4 hours ago

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