ObsidianToAnki / Obsidian_to_Anki

Script to add flashcards from text/markdown files to Anki
GNU General Public License v3.0
1.41k stars 125 forks source link

TAGS seem not to function properly #582

Closed Joursach closed 2 months ago

Joursach commented 2 months ago

The FILE TAGS command doesn't add any tags to the created cards in Anki. I use the FILE TAGS as a global command similarily to the TARGET DECK one. For example, TARGET DECK: mathematics FILE TAGS: tag1 tag2 etc. START ... END

The "Add Obsidian Tags" option doesn't add the specified tags to the created cards in Anki. I tried writing these tags in the front and back fields to no avail. For example: START Basic Front: #tag1 #tag2 etc. ... Back: ... END

The TAGS command also seems to misbehave in the same manner, i.e., no tags are added to the Anki card. I use the TAGS command before the END one. For example: START Basic Front: ... Back: ... TAGS: tag1 tag2 END

Joursach commented 2 months ago

I have experimented around and found the problem: My files contained the "tags" YAML property which conflicted with the Obsidian-to-Anki plugin. Once I removed the "tags" property from the cards it worked just fine. I appologise for unnecessary inconveniences.