anki-editor / anki-editor

Emacs minor mode for making Anki cards with Org Mode
GNU General Public License v3.0
104 stars 17 forks source link

Use org-export-to-buffer/org-export-as instead of org-export-string-as #10

Open orgtre opened 2 years ago

orgtre commented 2 years ago

This would make the exporter better aware of other things in the org buffer such as global settings, references, etc. See https://github.com/louietan/anki-editor/pull/81 and https://github.com/louietan/anki-editor/pull/102.

cmirdesouza commented 2 years ago

What needs to be done on this issue? If it is to copy-paste the code on the mentioned PRs to the code of this repository I can make a PR tomorrow.

orgtre commented 2 years ago

No, just copy-pasting the code breaks the field mappings (see my comment at #81) so that would have to be sorted out too.

renatgalimov commented 6 months ago

I tried to address this in #24 and then in #27. Now, after we added unit tests, I want to add tests for various note types and refactor #27 so to make it break existing functionality.