Bỏ qua đến nội dung

Anki Markdown Notes

Chờ xử lý #anki #addon #markdown #notes
https://github.com/Pradhyo/anki-markdown-notes/issues
14/3/2021

Cách tải addon Anki Markdown Notes

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

2141874715

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 2141874715 và copy

1

Mô tả chi tiết

⚠️⚠️Please version control your markdown notes and backup your Anki notes before attempting to import notes from markdown files using this add-on. Since only two built-in models are supported, this add-on might cause unexpected behavior. This has worked out well for me since Jan 2018 because I was starting from scratch and I only use the two supported models. Please raise issues here. ⚠️⚠️

This is an Anki add-on that extracts notes from a markdown file and imports it to Anki. This add-on is meant to be used when maintaining all notes using Markdown files only - any edits made from Anki will be lost the next time this add-on is used. Major advantages of doing so:

  • easily see all notes from each deck at the same place
  • easy to add notes in bulk into Anki when covering a lot of new material
  • maintain additional material that doesn’t have to go into Anki along with Anki notes
  • version control the notes since they are now markdown files

Only these two built-in models are supported for now - Basic and Basic (and reversed card) Media (images/audio) is not supported.

Existing Notes To start using this add-on, first extract all existing notes into markdown by selecting “Tools -> Export to Markdown Notes”. You should see all the notes following the built in models in a “Notes” folder in the folder you chose. You can now follow the conventions below and choose to rearrange your notes along with their id comments.

Starting from scratch Create a Notes folder wherever you want the notes to be and follow the below conventions. Then select “Tools -> Import from Markdown Notes” in the Anki desktop app to import them into Anki.

Conventions The file structure of the Markdown files is shown below. All notes extracted from the root folder are added to the Default deck - in the below case, notes from random.md go to the Default deck. Everything in a sub-folder goes to a deck named after that subfolder - here notes from socket.md and files.md go into the python deck.

Notes │ algorithms_md │ └───python │ │ socket_md │ │ files_md │
└───tools │ git_md │ tmux_md

To create a basic card, enter the following anywhere in the Markdown file:

""" Q: Question A: - Answer line 1

  • Answer line 2 """

This creates a basic card with Question as the front of the card and """ Answer line 1 Answer line 2 """ as the back. Blank lines in the markdown file are considered the end of a Note.

To create a basic and reversed card, use QA instead of Q above like so: """ QA: Question A: - Answer line 1

  • Answer line 2 """

The code is hosted on this GitHub repo. Sample Notes are in the Notes folder.


Liên kết hỗ trợ


Reviews (1)

👍 2023-10-16

Well i tried importing my cards. First time it didn’t work and the log was empty, so i try again. Now ALL my cards are gone!! See screenshot. Luckily i made a few backups but still this should NOT happen!!! https://i.ibb.co/Mg4bc8b/Schermafbeelding-2023-10-16-130232.png