-
Notifications
You must be signed in to change notification settings - Fork 143
Neuracache flashcard style
Pseudonium edited this page Dec 15, 2020
·
4 revisions
Regex line: ((?:[^\n][\n]?)+) #flashcard ?\n*((?:\n(?:^.{1,3}$|^.{4}(?<!<!--).*))+)
- Create a file called
test.md
- 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!
- In the plugin settings, paste the Regex line into the 'Custom Regexps' field associated with 'Basic'
- Ensure that the 'Regex' option is checked
- Click the Anki icon on the ribbon to run the plugin
- Run the script, and check 'Config' to open up the config file:
- Navigate to the "Custom Regexps" section
- Change the line
Basic =
to
Basic = ((?:[^\n][\n]?)+) #flashcard ?\n*((?:\n(?:^.{1,3}$|^.{4}(?
- Save the config file
- Run the script on the file, with 'Regex' checked:
- You should see these cards in Anki: