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

Concatenate headings in order of level for Header paragraph style #575

Open gruberjonas opened 2 months ago

gruberjonas commented 2 months ago

I want to propose an option for handling header levels slightly different in paragraph style. Or inculde a new style alltogether probably.

Basically if you have a document with this text:

filename.md

Heading 1

Heading 2

Some Text

and generate a card from it using the "header paragraph style", it would result in the following card:

Front: filename - Heading 1 - Heading 2 Back: Some Text

That would make it more convenient to work with header levels imo (depending on usecase). It would also prevent duplicate cards, if you use the same header in different document. Also, the delimiter (" - ") could be anything really. Bonus points for option to choose one! And removing the file extension. ;)

Best and a nice weekend, Jonas

gruberjonas commented 2 months ago

Just realised I can simply use the context for that!!