support xref using <<>> syntax
[pve-docs.git] / 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;
     }