@matheusbsbs / matheus-bagliano / commits / 9c0c1b1f28
Fork 0

Define linkgit macro in [macros] section

Starting with asciidoc 8.3.0 linkgit macro is no longer recognized by asciidoc and user guide suggests (http://www.methods.co.nz/asciidoc/userguide.html#_macro_definitions) that macros are supposed to be defined in [macros] section. I'm not sure whether undefined linkgit macro was working by pure chance or it is a regression in asciidoc 8.3.0, but this patch adds proper definition for the linkgit macro, allowing it to work on 8.3.0. Signed-off-by: Alexey Borzenkov <snaury@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Alexey Borzenkov committed Dec 8, 2008 at 21:29 UTC 9c0c1b1f28e27bf4ac8a7b13f0b0ed3eaebc8cff
1 file changed +3
Documentation/asciidoc.conf
+3
@@ -7,6 +7,9 @@
7 # Show GIT link as: <command>(<section>); if section is defined, else just show
8 # the command.
9
10 +[macros]
11 +(?su)[\\]?(?P<name>linkgit):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
12 +
13 [attributes]
14 asterisk=&#42;
15 plus=&#43;