-
Notifications
You must be signed in to change notification settings - Fork 145
Markdown table style
Rubaiyat Khondaker edited this page Dec 12, 2020
·
4 revisions
Regex line: \|([^\n|]+)\|\n\|(?:[^\n|]+)\|\n\|([^\n|]+)\|\n?
- Create a file called
test.md
. - Paste the following contents into the file:
| How do you use this style? | | ---- | | Just like this | Of course, the script will ignore anything outside a table. | Furthermore, the script | should also | | ----- | ----- | | Ignore any tables | with more than one column | | Why might this style be useful? | | --------- | | It looks nice when rendered as HTML in a markdown editor. |
- 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|]+)\|\n\|([^\n|]+)\|\n?
- Save the config file
- Run the script on the file, with 'Regex' checked:
- You should see these cards in Anki: