Skip to content

Commit

Permalink
added basic docs
Browse files Browse the repository at this point in the history
  • Loading branch information
abby.abb committed Nov 19, 2022
1 parent 7c223af commit 08543b6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
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.

0 comments on commit 08543b6

Please sign in to comment.