diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-07-03 22:12:49 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2015-07-05 16:11:36 -0700 |
commit | afc1b89ac71b642a841c8b79ea0ec6b70d2adae5 (patch) | |
tree | 4ef3e3080d2d38ca8514a6e3055c4817163b3012 /man | |
parent | 46e9ed6e0c118dc6b6a4a4833d6c960701849fdb (diff) |
Added LaTeX renderer.
* New exported function in API: `cmark_render_latex`.
* Added src/latex.hs.
* Updated README and man page.
* Closes #31.
Diffstat (limited to 'man')
-rw-r--r-- | man/man1/cmark.1 | 4 | ||||
-rw-r--r-- | man/man3/cmark.3 | 8 |
2 files changed, 9 insertions, 3 deletions
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 @@ -480,6 +480,12 @@ Render a \f[I]node\f[] tree as a groff man page, without the header. 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 .RS 0n |