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 ab6edef67e21afe580fa097bccfd9f610ac1f687..f1805c04c2ce97e0f19d2baf4f08c367f15c7a4c 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;
     }