emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] ox-html HOWTO? exporting #+RESULTS inside div


From: Charles C. Berry
Subject: Re: [O] ox-html HOWTO? exporting #+RESULTS inside div
Date: Wed, 21 Oct 2015 19:18:30 -0700
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

On Wed, 21 Oct 2015, Cook, Malcolm wrote:

Hi,

I would like to contrive for the contents of results blocks to be embedded in a new div with a common class of org-results-container.

Try this:

--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC shell :exports both :wrap org-results-container
echo "org results here"
#+END_SRC
--8<---------------cut here---------------end--------------->8---

which html export renders as

--8<---------------cut here---------------start------------->8---
<div class="org-results-container">
<p>
org results here
</p>

</div>
--8<---------------cut here---------------end--------------->8---

You can add a special-block filter if the <p> ... </p> is unwanted.

HTH,

Chuck



reply via email to

[Prev in Thread] Current Thread [Next in Thread]