Obsidian_to_Anki
Obsidian_to_Anki copied to clipboard
Whitelist folders or files
Is it possible to whitelist certain files or folders?
For example, I'd like to use the Header paragraph style without having the regex attempt to match everything in my vault.
I second that!
Hey there, I figured out a way to avoid that.
As for me, I want to generate a card that uses a ### title as front and the content underneath it(contains every 4# title and 5# title, in another word, it spans from the title to the next title which has the same or higher level or the end of the document) as back.
I wrote a regex to do that: ^(#{3} .+ #card)\s((\S|\s)+?)(?=\s#{1,3} |````````````)
To generate the card correctly, you have to add a tag "#card" after the title which you want to create a with, and add ```````````` (12 of `, or you can customise that by changing the syntax above) .
As for me, I put the 12 into my default templete and just write documents like the usual way. When I want to create a card, all I have to do is add a
#card` after the title.
You can try it out at regex101.com