|
| From: | Bastien |
| Subject: | Re: [O] Emacs lisp code export difference between `org-export-region-as-html' and `org-export-as-html' |
| Date: | Tue, 25 Sep 2012 03:24:52 +0200 |
| User-agent: | Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) |
thorne <address@hidden> writes:
> (defun render-one (file)
> (with-temp-buffer
> (insert-file file)
> (org-export-as-html nil nil nil 'string t)))
Try
(defun render-one (file)
(with-temp-buffer
(insert-file file)
(org-mode)
(org-export-as-html nil nil nil 'string t)))
(org-mode) is important here.
--
Bastien
| [Prev in Thread] | Current Thread | [Next in Thread] |