Md2Anki

Convert Markdown formatted documents to anki decks

MIT License

Downloads
280
Stars
6

Bot releases are visible (Hide)

Md2Anki - Update to allow for multi page documents and tags

Published by AnonymerNiklasistanonym almost 3 years ago

It is now possible to insert tags for all cards of a document (in the new description text before the first card/section begins) or only for single cards with the format:

`{=:tag:=}`

Also documents can now be merged together into a single anki deck which can be great for organization and that not a single 4K line document is created that is probably also heavier to parse with graphical Markdown editors. It is also possible to merge the markdown document into a single markdown document although then the global tags are being merged too!

The backup directories now include a cross platform powershell build script for the anki deck and a bash build script.

Also the KaTeX and HighlightJS versions were updated.

Problems:

  • Currently the HighlightJS rendered code blocks are still not highlighted on Android
  • Sometimes the very first card with KaTeX math is not formatted correctly but when switching to another card it should work fine again
Md2Anki - Update parser to allow horizontal rules (---) in answers

Published by AnonymerNiklasistanonym almost 4 years ago

Before the parser skipped multiple horizontal rules (---) and only used the last one to be found as question body answer separator.
Now the parser is updated to use the first one as question body answer separator and if another horizontal rule (---) is found it just appends it to the answer.
Currently this emits a warning as it was probably unintentional added from a user but will run without a problem.

Md2Anki - Update list indentation and question header id parsing

Published by AnonymerNiklasistanonym almost 4 years ago

  • Update markdown list indentation to 2 spaces (because this is generally used more like for example on GitHub)
  • Update regex expression for parsing parenthesis in question headers which previously took the first opening parenthesis and as content everything in between to the last parenthesis
Md2Anki - Fix LaTeX part rendering in tables and more

Published by AnonymerNiklasistanonym almost 4 years ago

This is achieved by replacing the math parts before doing the fancy rendering and thus characters like "|" are properly escaped and the contents in the math sections do not influence the rendering at all like you would expect it to work.
Also the program has one less dependency because the markdown math parser did not work and was thus removed.

Md2Anki - Fix LaTeX math block/inline rendering

Published by AnonymerNiklasistanonym almost 4 years ago

LaTeX math blocks and inline parts should now not be update any more and will have the same content in the final card as they have in the input (besides the escaped XML tag characters).

Md2Anki - Initial release

Published by AnonymerNiklasistanonym about 4 years ago

After all basic requirements are more or less working the program can be used in production.