ObsidianToAnki / Obsidian_to_Anki

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

Duplicated frontmatter data #295

Open digitall-it opened 2 years ago

digitall-it commented 2 years ago

I format some of my cards with Dataview information in YAML format in the frontmatter, and I have to duplicate it to create an Anki card. Is this duplication avoidable?

Note name is Zolfo

---
tags: elementi
Numero: 16
Simbolo: S
Serie: Non metalli
Gruppo: 16
Periodo: 3
---

START
Elemento
Nome: Zolfo
Numero: 16
Simbolo: S
Serie: Non metalli
<!--ID: 1636046889866-->
END
digitall-it commented 2 years ago

Proposal, add a anki-card-type (case insensitive) variable that activates parsing of the front matter, that upon sync changes from string to array and gets the ID

---
tags: elementi
Numero: 16
Simbolo: S
Serie: Non metalli
Gruppo: 16
Periodo: 3
Anki-Card-Type: Elemento, 1636046889866
---