marked/man/marked.1

112 lines
2.2 KiB
Groff
Raw Normal View History

.ds q \N'34'
2019-03-12 09:07:47 -05:00
.TH marked 1
2013-01-03 07:07:09 -06:00
.SH NAME
marked \- a javascript markdown parser
2013-01-03 07:07:09 -06:00
.SH SYNOPSIS
2013-01-03 07:07:09 -06:00
.B marked
2013-01-22 12:06:19 -06:00
[\-o \fI<output>\fP] [\-i \fI<input>\fP] [\-\-help]
2013-01-03 07:07:09 -06:00
[\-\-tokens] [\-\-pedantic] [\-\-gfm]
2019-07-02 00:23:57 -05:00
[\-\-breaks] [\-\-sanitize]
2013-01-22 12:06:19 -06:00
[\-\-smart\-lists] [\-\-lang\-prefix \fI<prefix>\fP]
[\-\-no\-etc...] [\-\-silent] [\fIfilename\fP]
2013-01-03 07:07:09 -06:00
.SH DESCRIPTION
.B marked
2019-03-12 09:07:47 -05:00
is a full-featured javascript markdown parser, built for speed.
It also includes multiple GFM features.
2013-01-03 07:07:09 -06:00
.SH EXAMPLES
.TP
cat in.md | marked > out.html
.TP
echo "hello *world*" | marked
.TP
2018-04-05 14:36:01 -05:00
marked \-o out.html \-i in.md \-\-gfm
2013-01-03 07:07:09 -06:00
.TP
marked \-\-output="hello world.html" \-i in.md \-\-no-breaks
2013-01-03 07:07:09 -06:00
.SH OPTIONS
.TP
2013-01-22 12:06:19 -06:00
.BI \-o,\ \-\-output\ [\fIoutput\fP]
Specify file output. If none is specified, write to stdout.
.TP
2013-01-22 12:06:19 -06:00
.BI \-i,\ \-\-input\ [\fIinput\fP]
2019-03-12 09:07:47 -05:00
Specify file input, otherwise use last argument as input file.
If no input file is specified, read from stdin.
.TP
2019-03-09 23:24:28 -06:00
.BI \-\-test
Makes sure the test(s) pass.
2019-03-09 23:24:28 -06:00
.RS
.PP
.B \-\-glob [\fIfile\fP]
Specify which test to use.
2019-03-09 23:24:28 -06:00
.PP
2019-03-09 23:41:19 -06:00
.B \-\-fix
Fixes tests.
.PP
2019-03-09 23:24:28 -06:00
.B \-\-bench
Benchmarks the test(s).
2019-03-09 23:24:28 -06:00
.PP
.B \-\-time
Times The test(s).
2019-03-09 23:24:28 -06:00
.PP
.B \-\-minified
Runs test file(s) as minified.
2019-03-10 23:16:09 -05:00
.PP
.B \-\-stop
Stop process if a test fails.
2019-03-09 23:24:28 -06:00
.RE
.TP
.BI \-t,\ \-\-tokens
Output a token stream instead of html.
.TP
2012-02-19 03:00:03 -06:00
.BI \-\-pedantic
2019-03-12 09:07:47 -05:00
Conform to obscure parts of markdown.pl as much as possible.
Don't fix original markdown bugs.
2012-02-19 03:00:03 -06:00
.TP
.BI \-\-gfm
2012-04-06 02:56:12 -05:00
Enable github flavored markdown.
2012-02-19 03:00:03 -06:00
.TP
2013-01-03 07:07:09 -06:00
.BI \-\-breaks
Enable GFM line breaks. Only works with the gfm option.
2012-02-19 03:00:03 -06:00
.TP
2013-01-03 07:07:09 -06:00
.BI \-\-sanitize
Sanitize output. Ignore any HTML input.
.TP
.BI \-\-smart\-lists
Use smarter list behavior than the original markdown.
.TP
2013-01-22 12:06:19 -06:00
.BI \-\-lang\-prefix\ [\fIprefix\fP]
Set the prefix for code block classes.
.TP
.BI \-\-mangle
Mangle email addresses.
.TP
2013-01-03 07:07:09 -06:00
.BI \-\-no\-sanitize,\ \-no-etc...
The inverse of any of the marked options above.
.TP
2013-01-03 07:07:09 -06:00
.BI \-\-silent
Silence error output.
.TP
2013-01-03 07:07:09 -06:00
.BI \-h,\ \-\-help
Display help information.
.SH CONFIGURATION
For configuring and running programmatically.
.B Example
require('marked')('*foo*', { gfm: true });
.SH BUGS
2018-03-03 14:20:24 -05:00
Please report any bugs to https://github.com/markedjs/marked.
2013-01-03 07:07:09 -06:00
.SH LICENSE
2014-01-31 16:58:45 -06:00
Copyright (c) 2011-2014, Christopher Jeffrey (MIT License).
2013-01-03 07:07:09 -06:00
2013-01-22 12:06:19 -06:00
.SH "SEE ALSO"
2013-01-04 23:08:16 -06:00
.BR markdown(1),
.BR node.js(1)