You are not logged in.

#1 2014-03-18 17:43:09

tbdc
Member
Registered: 2012-04-25
Posts: 22

[SOLVED] Emacs Org Mode-Special blocks not exporting correctly to html

Firstly, I'm not sure where to post this so I appologise if this is not the correct place!

I have just started to move back to emacs after a long time using vim, mainly to take advantage of org-mode. I have a fresh install of emacs and a currently empty .emacs file.

From what I have read in the org manual http://orgmode.org/manual/Special-blocks.html a .org file containg a block like

#+BEGIN_TEST
Some text
#+END_TEST

should, when exported to html, wrap "Some text" in

 <div name="test"> 

tags but it does not! What is going wrong?

Last edited by tbdc (2014-03-19 14:59:53)

Offline

#2 2014-03-18 21:19:17

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [SOLVED] Emacs Org Mode-Special blocks not exporting correctly to html

The org-mode that comes with Emacs is behind the latest stand-alone releases. Install emacs-org-mode from the AUR.

I tried it with org-mode 8.0.3 and I get:

...
<body>
<div id="content">
<h1 class="title">test</h1>
<div class="test">
<p>
Some text
</p>

</div>
</div>
...

Offline

#3 2014-03-19 14:59:03

tbdc
Member
Registered: 2012-04-25
Posts: 22

Re: [SOLVED] Emacs Org Mode-Special blocks not exporting correctly to html

Thank you! Installing more resecnt version from the AUR has solved the issue.

Offline

Board footer

Powered by FluxBB