From afc1b89ac71b642a841c8b79ea0ec6b70d2adae5 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 3 Jul 2015 22:12:49 -0700 Subject: Added LaTeX renderer. * New exported function in API: `cmark_render_latex`. * Added src/latex.hs. * Updated README and man page. * Closes #31. --- man/man1/cmark.1 | 4 ++-- man/man3/cmark.3 | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'man') diff --git a/man/man1/cmark.1 b/man/man1/cmark.1 index 8c1c2c7..64fa697 100644 --- a/man/man1/cmark.1 +++ b/man/man1/cmark.1 @@ -10,7 +10,7 @@ file* .SH "DESCRIPTION" \fBcmark\fR converts Markdown formatted plain text to either HTML, groff man, -CommonMark XML, or CommonMark, using the conventions +CommonMark XML, LaTeX, or CommonMark, using the conventions described in the CommonMark spec. It reads input from \fIstdin\fR or the specified files (concatenating their contents) and writes output to \fIstdout\fR. @@ -18,7 +18,7 @@ output to \fIstdout\fR. .TP 12n .B \-\-to, \-t \f[I]FORMAT\f[] Specify output format (\f[C]html\f[], \f[C]man\f[], \f[C]xml\f[], -\f[C]commonmark\f[]). +\f[C]latex\f[], \f[C]commonmark\f[]). .TP 12n .B \-\-width \f[I]WIDTH\f[] Specify a column width to which to wrap the output. For no wrapping, use diff --git a/man/man3/cmark.3 b/man/man3/cmark.3 index 6edac7b..6521126 100644 --- a/man/man3/cmark.3 +++ b/man/man3/cmark.3 @@ -1,4 +1,4 @@ -.TH cmark 3 "June 25, 2015" "LOCAL" "Library Functions Manual" +.TH cmark 3 "July 03, 2015" "LOCAL" "Library Functions Manual" .SH NAME .PP @@ -479,6 +479,12 @@ Render a \f[I]node\f[] tree as a groff man page, without the header. .PP Render a \f[I]node\f[] tree as a commonmark document. +.PP +\fIchar *\f[] \fBcmark_render_latex\f[](\fIcmark_node *root\f[], \fIint options\f[], \fIint width\f[]) + +.PP +Render a \f[I]node\f[] tree as a LaTeX document. + .PP .nf \fC -- cgit v1.2.3