From: Dietmar Maurer Date: Sat, 8 Oct 2016 12:09:45 +0000 (+0200) Subject: support xref using <<>> syntax X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=a16bf08ef328c9980ddeefd9bc7a2ac21822122a support xref using <<>> syntax --- diff --git a/asciidoc-pve.in b/asciidoc-pve.in index ab6edef..f1805c0 100644 --- a/asciidoc-pve.in +++ b/asciidoc-pve.in @@ -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; }