Turn on Org-mode in temp buffer

This commit is contained in:
louie 2018-01-20 20:51:13 +08:00
parent 620d904d28
commit 5fb4b60026

View file

@ -367,6 +367,7 @@ DECK is used when the action is note creation."
(defun anki-editor--generate-html (contents)
"Convert CONTENTS to HTML."
(with-temp-buffer
(org-mode)
(insert contents)
(setq anki-editor--replacement-records nil)
(anki-editor--replace-latex)