3 Commits

Author SHA1 Message Date
Rudy Celekli
c6b263b862 fix(notes): drop fenced-code info string from Anki export body
markdown_to_anki_html took the whole span between the opening and closing
backtick runs as code, so a fenced block's info string (its language) became
the first line of the rendered code. ```python\nprint(1)\n``` exported as
<pre><code>python<br>print(1)</code></pre>, putting a stray "python" line
inside every language-tagged code card.

Start the code body after the opening fence line's newline, matching how a
fenced code block is defined. Fences without an info string, and single-line
spans with no newline, are unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-01 09:07:38 -05:00
Bingxi Zhao (Frank)
c93de45dcf fix(notes): protect Anki code and math in one collision-free pass 2026-10-29 01:03:27 +08:00
Matt Van Horn
7f061c5675 feat(notes): export flashcards for Anki
Add a tab-separated Anki import from a note page and from the review
queue so learners can File -> Import cards into a deck named after the
note. Re-importing uses stable card GUIDs and does not include review
scheduling.
2026-10-27 22:07:06 +00:00