@@ -4,11 +4,11 @@ Asciidoctor::Extensions.register do
inline_macro :linkgit do
process do |parent, target, attrs|
- prefix = parent.document.attr('git-relative-html-prefix')
if parent.document.doctype == 'book'
- "<ulink url=\"#{prefix}#{target}.html\">" \
+ "<ulink url=\"#{target}.html\">" \
"#{target}(#{attrs[1]})</ulink>"
elsif parent.document.basebackend? 'html'
+ prefix = parent.document.attr('git-relative-html-prefix')
%(<a href="#{prefix}#{target}.html">#{target}(#{attrs[1]})</a>)
elsif parent.document.basebackend? 'docbook'
"<citerefentry>\n" \
This is what asciidoc.conf does. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- Documentation/asciidoctor-extensions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)