Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: [PATCH] git-show-ref: fix escaping in asciidoc source

From: Thomas Rast <hidden>
Date: 2016-06-15 22:52:29

Michael Haggerty wrote:
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 [off-list ref]
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 [off-list ref]
    Signed-off-by: Junio C Hamano [off-list ref]

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help