Skip to content

Neuracache flashcard style

Pseudonium edited this page Dec 15, 2020 · 4 revisions

Usage

Regex line: ((?:[^\n][\n]?)+) #flashcard ?\n*((?:\n(?:^.{1,3}$|^.{4}(?<!<!--).*))+)

  1. Create a file called test.md
  2. Paste the following contents into the file:
In Neuracache style, to make a flashcard you do #flashcard
The next lines then become the back of the flashcard

If you want, it's certainly possible to
do a multi-line question #flashcard
You just need to make sure both
the question and answer are one paragraph.

And, of course #flashcard


Whitespace is ignored!

Obsidian Plugin users

  1. In the plugin settings, paste the Regex line into the 'Custom Regexps' field associated with 'Basic'
  2. Ensure that the 'Regex' option is checked
  3. Click the Anki icon on the ribbon to run the plugin

Python Script users

  1. Run the script, and check 'Config' to open up the config file:
    GUI
  2. Navigate to the "Custom Regexps" section
  3. Change the line
Basic =

to

Basic = ((?:[^\n][\n]?)+) #flashcard ?\n*((?:\n(?:^.{1,3}$|^.{4}(?
  1. Save the config file
  2. Run the script on the file, with 'Regex' checked:
    GUI

All users

  1. You should see these cards in Anki:
    neuracache_1
    neuracache_2
    neuracache_3
Clone this wiki locally