git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Michael Haggerty
Message 7 of 7 in “git-show-ref: fix escaping in asciidoc source”
  1. git-show-ref: fix escaping in asciidoc sourcemhagger@alum.mit.edu, Oct 19, 2011
  2. Junio C HamanoOct 19, 2011
  3. Michael HaggertyNov 15, 2011
  4. Junio C HamanoNov 15, 2011
  5. Michael HaggertyNov 16, 2011
  6. Michael HaggertyNov 16, 2011
  7. Thomas RastNov 16, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.