How to export results of org babel src when exporting via ox-publish?

Hey all,

I am trying to use ox-publish to make my blog, I followed
systemcrafter’s tutorial for this.

What I am struggling with is this, Let’s say I have this org document.

#+begin_example
Hello World
#+begin_src elisp :exports results
(message “Hello World”)
#+end_src
#+end_example
And export is using =org-html-export-to-html=, I will get an html file
which says
#+begin_example
Hello World
Hello World
#+end_example
But if I use ox-publish to do it, I do not get the second “Hello World”.

This fixed it.

(setq org-confirm-babel-evaluate nil)
1 Like