TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Generate Anki cards from your notes

2 pointsby ichversteheover 2 years ago
Hi!<p>To help me prepare for a biology test, I made a Python app, using the excellent genanki package[1] to generate Anki cards directly from my Markdown notes. Cards are created from list items, using delimeters like `?::` to separate the question&#x2F;answer (or front&#x2F;back) from one another.<p>Example:<p>---<p># The Solar System<p>- Number of planets ?:: 8<p>## Planets<p>- Mars<p><pre><code> - Color ?:: red </code></pre> ---<p>This will create two cards:<p>(1)<p>Path: The Solar System<p>Front: Number of planets<p>Back: 8<p>(2)<p>Path: The Solar System &gt; Planets &gt; Mars<p>Front: Color<p>Back: Red<p>Other tools to generate Anki cards from Markdown exist, but none worked well with nested lists. I also really wanted to have a &quot;path&quot;, generated from headings&#x2F;ancestral list items, to enable very succint cards, such as the `Color ?:: red`.<p>I hope it might be of use to someone else.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;kerrickstaley&#x2F;genanki" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kerrickstaley&#x2F;genanki</a>

no comments

no comments