2012-01-27 15:53:57 -06:00
|
|
|
.ds q \N'34'
|
2019-03-12 09:07:47 -05:00
|
|
|
.TH marked 1
|
2013-01-03 07:07:09 -06:00
|
|
|
|
2012-01-27 15:53:57 -06:00
|
|
|
.SH NAME
|
|
|
|
marked \- a javascript markdown parser
|
2013-01-03 07:07:09 -06:00
|
|
|
|
2012-01-27 15:53:57 -06:00
|
|
|
.SH SYNOPSIS
|
2013-01-03 07:07:09 -06:00
|
|
|
.B marked
|
2021-11-02 07:32:17 -07:00
|
|
|
[\-o \fI<output>\fP] [\-i \fI<input>\fP] [\-s \fI<string>\fP] [\-\-help]
|
2023-09-02 22:02:24 -06:00
|
|
|
[\-c \fI<config>\fP] [\-\-tokens] [\-\-pedantic] [\-\-gfm] [\-\-breaks]
|
2013-01-22 12:06:19 -06:00
|
|
|
[\-\-no\-etc...] [\-\-silent] [\fIfilename\fP]
|
2013-01-03 07:07:09 -06:00
|
|
|
|
2012-01-27 15:53:57 -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
|
2014-01-02 23:45:40 +01:00
|
|
|
marked \-\-output="hello world.html" \-i in.md \-\-no-breaks
|
2013-01-03 07:07:09 -06:00
|
|
|
|
2012-01-27 15:53:57 -06:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2013-01-22 12:06:19 -06:00
|
|
|
.BI \-o,\ \-\-output\ [\fIoutput\fP]
|
2012-01-27 15:53:57 -06:00
|
|
|
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.
|
2012-01-27 15:53:57 -06:00
|
|
|
.TP
|
2021-11-02 07:32:17 -07:00
|
|
|
.BI \-s,\ \-\-string\ [\fIstring\fP]
|
|
|
|
Specify string input instead of a file.
|
2019-03-09 23:24:28 -06:00
|
|
|
.TP
|
2023-09-02 21:39:45 -06:00
|
|
|
.BI \-c,\ \-\-config\ [\fIconfig\fP]
|
|
|
|
Specify a javascript file to be used as the config file
|
|
|
|
instead of the default file in your home directory.
|
|
|
|
.TP
|
2012-01-27 15:53:57 -06:00
|
|
|
.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 \-\-silent
|
|
|
|
Silence error output.
|
2012-01-27 15:53:57 -06:00
|
|
|
.TP
|
2013-01-03 07:07:09 -06:00
|
|
|
.BI \-h,\ \-\-help
|
|
|
|
Display help information.
|
|
|
|
|
|
|
|
.SH CONFIGURATION
|
|
|
|
For configuring and running programmatically.
|
|
|
|
|
|
|
|
.B Example
|
|
|
|
|
2021-11-02 07:32:17 -07:00
|
|
|
import { marked } from 'marked';
|
|
|
|
marked('*foo*', { gfm: true });
|
2013-01-03 07:07:09 -06:00
|
|
|
|
2012-01-27 15:53:57 -06:00
|
|
|
.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
|
|
|
|
2012-01-27 15:53:57 -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)
|