anki-editor/anki-editor

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

orgtre opened this issue · 3 comments

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

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.

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

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.