TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Generate Anki cards from your notes

2 点作者 ichverstehe超过 2 年前
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>

暂无评论

暂无评论