-
Notifications
You must be signed in to change notification settings - Fork 136
Ruled style
Rubaiyat Khondaker edited this page Dec 16, 2020
·
3 revisions
Regex line: ((?:[^\n][\n]?)+\n)-{3,}((?:\n(?:^.{1,3}$|^.{4}(?<!<!--).*))*)
- Create a file called
test.md
- Paste the following contents into the file:
How do you use ruled style? --- You need at least three '-' between the front and back of the card. Are paragraphs supported? --------- Yes, but you need the front and back directly before and after the ruler.
- 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]?)+\n)-{3,}((?:\n(?:^.{1,3}$|^.{4}(?<!<!--).*))*)
- Save the config file
- Run the script on the file, with 'Regex' checked:
- You should see these cards in Anki: