support xref using <<>> syntax
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 8 Oct 2016 12:09:45 +0000 (14:09 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 8 Oct 2016 12:09:45 +0000 (14:09 +0200)
asciidoc-pve.in

index ab6edef..f1805c0 100644 (file)
@@ -124,6 +124,7 @@ sub prepare_adoc_file {
        # fix xrefs
        $line =~ s/xref:([^\s\[\]]+)\[([^\]]*)\]/replace_wiki_xref($1,$2)/ge;
 
+       $line =~ s/<<([^\s,\[\]]+)(?:,(.*?))?>>/replace_wiki_xref($1,$2)/ge;
 
        print $outfh $line;
     }