diff --git a/weblorg.el b/weblorg.el index 56153e8..0c0ceaa 100644 --- a/weblorg.el +++ b/weblorg.el @@ -1058,10 +1058,10 @@ an INPUT-PATH to resolve relative links and INCLUDES from." "" (funcall fn headline contents info)))) ;; Trigger Org-Mode to generate the HTML off of the input data - (with-temp-buffer + (with-temp-file "weblorg.org.tmp" (insert input-data) - (if input-path (set-visited-file-name input-path t t)) (setq html (org-export-as 'html nil nil t))) + ;; Uninstall advices (ad-unadvise 'org-html-keyword) (ad-unadvise 'org-html-headline)