=================================================================== RCS file: /cvs/pod2mdoc/pod2mdoc.1,v retrieving revision 1.14 retrieving revision 1.17 diff -u -p -r1.14 -r1.17 --- pod2mdoc/pod2mdoc.1 2015/02/13 00:44:16 1.14 +++ pod2mdoc/pod2mdoc.1 2015/02/14 15:34:39 1.17 @@ -1,4 +1,4 @@ -.\" $Id: pod2mdoc.1,v 1.14 2015/02/13 00:44:16 schwarze Exp $ +.\" $Id: pod2mdoc.1,v 1.17 2015/02/14 15:34:39 schwarze Exp $ .\" .\" Copyright (c) 2014 Kristaps Dzonsons .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: February 13 2015 $ +.Dd $Mdocdate: February 14 2015 $ .Dt POD2MDOC 1 .Os .Sh NAME @@ -58,10 +58,23 @@ preferrably in .Qq Month Day, Year format .Pc . -If unspecified, +If unspecified or if +.Ar date +is the literal string +.Cm Mdocdate , .Nm uses the file modification date or the current date if reading from standard input. +If +.Ar date +is the literal string +.Cm Mdocdate , +.Nm +prepends +.Qq $Mdocdate: +to the date and appends a dollar sign, producing the format used by +.Ox +.Xr cvs 1 . .It Fl n Ar title Set the document title .Pq Sq \&Dt @@ -107,6 +120,11 @@ lines are found at the start of a verbatim paragraph, with .Sq \&In . .It +Other lines starting with +.Sq # +are rendered with +.Sq \&Fd . +.It An initial .Li B<> format code is rendered as @@ -197,6 +215,15 @@ Words followed by .Qq Pq that match function names listed in the SYNOPSIS section are marked up with .Sq \&Fn . +.Pp +If the contents of a +.Li B<> +format code matches a type name mentioned in the SYNOPSIS section, +it is rendered as +.Sq \&Vt . +If it matches a function argument name mentioned there, +it is rendered as +.Sq \&Fa . .Sh EXIT STATUS .Ex -std .Sh EXAMPLES