| # Usage: linkgit:command[manpage-section] |
| # Note, {0} is the manpage section, while {target} is the command. |
| # Show Git link as: <command>(<section>); if section is defined, else just show |
| (?su)[\\]?(?P<name>linkgit):(?P<target>\S*?)\[(?P<attrlist>.*?)\]= |
| {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>} |
| # The following two small workarounds insert a simple paragraph after screen |
| <example><title>{title}</title> |
| <literallayout class="monospaced"> |
| </literallayout><simpara></simpara> |
| <formalpara{id? id="{id}"}><title>{title}</title><para> |
| {title%}<literallayout{id? id="{id}"}> |
| {title#}</para></formalpara> |
| {title%}<simpara></simpara> |
| git-relative-html-prefix= |
| <a href="{git-relative-html-prefix}{target}.html">{target}{0?({0})}</a> |