emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Bug report: export to HTML does not escape * in example


From: Charles C. Berry
Subject: Re: [O] Bug report: export to HTML does not escape * in example
Date: Mon, 27 Feb 2017 09:57:13 -0800
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

On Mon, 27 Feb 2017, dmg wrote:

On Sun, Feb 26, 2017 at 11:40 PM, Nicolas Goaziou <address@hidden>
wrote:


A star at the beginning of a line is always a headline.

[...]


​Thank you. I guess the issue is then with org-babel.

I am running a babel script that generates, as one of its line * in the
front:

​#+BEGIN_SRC sh
echo "* Hello"
#+END_SRC

#+RESULTS:
#+begin_example
* Hello
#+end_example

​In that case, should babel be the one escaping the * in the RESULTS block?

Is that *really* what it did?

When I run your example, I get:

#+RESULTS:
: * Hello

and this exports (with the `:exports results' header) to html wrapped in a <pre class="example"> container:

<pre class="example">
* Hello
</pre>

using Org 9.0.5.

Without that header the src code gets wrapped in a <pre> container.

So there must be something in/about your setup you haven't mentioned.

HTH,

Chuck

reply via email to

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