commit de9bfa5d46f5445e90466b91461cc7dc851ff2fb
parent 04f2591c850d96a45ceac3420af95944473644d7
Author: Nick Econopouly <wry@mm.st>
Date: Sun, 11 Oct 2020 01:49:43 -0400
Enable anki-editor-mode on anki-capture-finish
This makes inline org images correctly push to Anki and show up in the cards.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/anki-capture.el b/anki-capture.el
@@ -107,6 +107,7 @@ Turning on this mode runs the normal hook `anki-capture-mode-hook'."
(defun anki-capture-finish ()
(interactive)
+ (anki-editor-mode) ;; this is necessary to properly push inline images
(call-interactively 'anki-editor-push-notes) ;; pushes current note
(kill-buffer "*anki-capture*"))