[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-html-publish-to-html fails to recognize BEGIN_EXAMPLE/END_EX
From: |
Sebastien Vauban |
Subject: |
Re: [O] org-html-publish-to-html fails to recognize BEGIN_EXAMPLE/END_EXAMPLE blocks when exporting an example containing org-mode heading |
Date: |
Thu, 26 Sep 2013 09:36:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) |
Iannis Zannos,
Iannis Zannos wrote:
> Hello,
>
> when trying to export as html an example which contains org-mode headings,
> the example is not "quoted" in mono-space as it should be. Example:
>
> *1. Failing example: *
>
> --------------------------------
>
> This is a test of publishing an example which contains org mode code in
> html:
>
> #+BEGIN_EXAMPLE
> * test
> #+END_EXAMPLE
>
> End of test.
>
> --------------------------------
>
> *2. Workaround: *
>
> This works as expected, but only because the * headline is indented by 1
> character:
>
> --------------------------------
>
> This is a test of publishing an example which contains org mode code in
> html:
>
> #+BEGIN_EXAMPLE
> * test
> #+END_EXAMPLE
>
> End of test.
The official solution (normally automatic[1] for Org code blocks) is to have a
"," inserted before the "*"; it is removed automatically when exporting.
Best regards,
Seb
[1] Sometimes, the "," is not automatically inserted for me, though, when
TAB'ing.
--
Sebastien Vauban