-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
abby.abb
committed
Nov 19, 2022
1 parent
7c223af
commit 08543b6
Showing
1 changed file
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
# codeblock-to-anki | ||
Parse markdown code blocks into anki notes. | ||
Parses markdown code blocks and assembles them into an anki package using [genanki](https://github.com/kerrickstaley/genanki). | ||
|
||
## Usage | ||
Create some anki code blocks in your markdown files with unique `name` and `deck` (note the `anki` attribute): | ||
|
||
~~~ | ||
```anki name:strings deck:programming_fundamentals | ||
{{c1::Strings}} are sequences of {{c2::characters}}. | ||
``` | ||
~~~ | ||
|
||
Run `python path/to/src/codeblock_to_anki.py` in the directory where you notes lie. All notes in the directory and child directories will be assembled into anki cloze notes and written into a package. | ||
|
||
Import the package into anki. | ||
|
||
Contributions are very welcome. |