Re: [PATCH] git-show-ref: fix escaping in asciidoc source
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Nov 16, 2011, 13:08 UTC
- Message-ID
- <201111161408.50700.trast@student.ethz.ch>
- In-Reply-To
- <4EC3A45F.9080005@alum.mit.edu>
Michael Haggerty wrote:
Show 5 quoted lines
> 36 [2]. How can I escape AsciiDoc markup? > > Most AsciiDoc inline elements can be suppressed by preceding them with a > backslash character. These elements include: [...] But there are > exceptions — see the next question.
[...]
> Note Escaping is unnecessary inside inline literal passthroughs > (backtick quoted text).
Beware! We actively change the inline literal quoting behaviour to ensure consistent output with different versions of asciidoc. See this commit:
commit 71c020c53ec472b04678237d8fe5687f2299db2a Author: Thomas Rast <trast@student.ethz.ch> Date: Sat Jul 25 14:06:50 2009 +0200
Disable asciidoc 8.4.1+ semantics for `{plus}` and friends
asciidoc 8.4.1 changed the semantics of inline backtick quoting so
that they disable parsing of inline constructs, i.e.,
Input: `{plus}`
Pre 8.4.1: +
Post 8.4.1: {plus}
Fix this by defining the asciidoc attribute 'no-inline-literal'
(which, per the 8.4.1 changelog, is the toggle to return to the old
behaviour) when under ASCIIDOC8.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>--
Thomas Rast
trast@{inf,student}.ethz.ch