Browse Source

ox-org.el: Show all headings and all blocks before fontifying when htmlizing sources

* ox-org.el (org-org-publish-to-org): When htmlizing an .org
file, ensure to show all headings and all blocks before
fontifying.
Bastien Guerry 4 years ago
parent
commit
c1ea2c3df9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lisp/ox-org.el

+ 2 - 0
lisp/ox-org.el

@@ -226,6 +226,8 @@ Return output file name."
 	   (work-buffer (or visitingp (find-file filename)))
 	   newbuf)
       (font-lock-fontify-buffer)
+      (show-all)
+      (org-show-block-all)
       (setq newbuf (htmlize-buffer))
       (with-current-buffer newbuf
 	(when org-org-htmlized-css-url