From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: 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 10:34:55 +0200 Message-ID: <8638osf0b4.fsf@somewhere.org> References: <86ioxof30h.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Iannis, Iannis Zannos wrote: > On Thu, Sep 26, 2013 at 10:36 AM, Sebastien Vauban wrote: >> Iannis Zannos wrote: >> > 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. >> >> The official solution (normally automatic for Org code blocks) is to have a >> "," inserted before the "*"; it is removed automatically when exporting. > > Thank you for the answer. It is clear now. Glad it helped! > Perhaps the info manual of org-mode should be updated to indicate this? I > would propose to do this in the following places in the manual: > > 11.3 Literal examples > and perhaps also: > 15.2 Easy Templates Would you mind providing a patch? Best regards, Seb -- Sebastien Vauban