Define linkgit macro in [macros] section
authorAlexey Borzenkov <snaury@gmail.com>
Mon, 8 Dec 2008 18:29:09 +0000 (21:29 +0300)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Dec 2008 01:11:37 +0000 (17:11 -0800)
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>
Documentation/asciidoc.conf
index 2da867d2f8dd1e5272d33571062bda5f169cd278..1e735df3bb5ba15b7f088442439e48a99ca85dbd 100644 (file)
@@ -7,6 +7,9 @@
 # Show GIT link as: <command>(<section>); if section is defined, else just show
 # the command.
 
+[macros]
+(?su)[\\]?(?P<name>linkgit):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
+
 [attributes]
 asterisk=&#42;
 plus=&#43;