mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 20:37:51 +00:00
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.
This commit is contained in:
parent
838cf55bcd
commit
c1ea2c3df9
|
@ -226,6 +226,8 @@ Return output file name."
|
||||||
(work-buffer (or visitingp (find-file filename)))
|
(work-buffer (or visitingp (find-file filename)))
|
||||||
newbuf)
|
newbuf)
|
||||||
(font-lock-fontify-buffer)
|
(font-lock-fontify-buffer)
|
||||||
|
(show-all)
|
||||||
|
(org-show-block-all)
|
||||||
(setq newbuf (htmlize-buffer))
|
(setq newbuf (htmlize-buffer))
|
||||||
(with-current-buffer newbuf
|
(with-current-buffer newbuf
|
||||||
(when org-org-htmlized-css-url
|
(when org-org-htmlized-css-url
|
||||||
|
|
Loading…
Reference in a new issue