emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: dmg <dmg@turingmachine.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Bug report: export to HTML does not escape * in example
Date: Mon, 27 Feb 2017 08:40:31 +0100	[thread overview]
Message-ID: <87h93gdqts.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAEBXXD_eunOcJ0vx4N1YVddKpE5DrhNymbrKyOkWa2nwcmhb1g@mail.gmail.com> (dmg@turingmachine.org's message of "Sun, 26 Feb 2017 17:00:54 -0800")

Hello,

dmg <dmg@turingmachine.org> writes:

> The following example:
>
>
> * Example
>
> #+begin_example
> hello world
> #+end_example
>
> #+begin_example
> * hello world
> #+end_example
>
> exports an HTML file where the second "hello word" is interpreted as a
> header, ignoring that it is within begin_example. See below

A star at the beginning of a line is always a headline. It has
precedence over the block around it. You need to escape the star
character:

  #+begin_example
  ,* hello world
  #+end_example

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-02-27  7:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-27  1:00 Bug report: export to HTML does not escape * in example dmg
2017-02-27  7:40 ` Nicolas Goaziou [this message]
2017-02-27  8:24   ` dmg
2017-02-27 17:57     ` Charles C. Berry
2017-02-27 19:04       ` Nick Dokos
2017-03-01 20:04       ` D M German
2017-03-01 21:20         ` Nicolas Goaziou
2017-03-03 19:06           ` Charles C. Berry
2017-03-05 17:06             ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h93gdqts.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=dmg@turingmachine.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).