UNPKG

2.16 kBPlain TextView Raw
1marked(1) General Commands Manual marked(1)
2
3NAME
4 marked - a javascript markdown parser
5
6SYNOPSIS
7 marked [-o <output>] [-i <input>] [-s <string>] [--help] [--tokens]
8 [--pedantic] [--gfm] [--breaks] [--sanitize] [--smart-lists]
9 [--lang-prefix <prefix>] [--no-etc...] [--silent] [filename]
10
11
12DESCRIPTION
13 marked is a full-featured javascript markdown parser, built for speed.
14 It also includes multiple GFM features.
15
16EXAMPLES
17 cat in.md | marked > out.html
18
19 echo "hello *world*" | marked
20
21 marked -o out.html -i in.md --gfm
22
23 marked --output="hello world.html" -i in.md --no-breaks
24
25OPTIONS
26 -o, --output [output]
27 Specify file output. If none is specified, write to stdout.
28
29 -i, --input [input]
30 Specify file input, otherwise use last argument as input file.
31 If no input file is specified, read from stdin.
32
33 -s, --string [string]
34 Specify string input instead of a file.
35
36 -t, --tokens
37 Output a token stream instead of html.
38
39 --pedantic
40 Conform to obscure parts of markdown.pl as much as possible.
41 Don't fix original markdown bugs.
42
43 --gfm Enable github flavored markdown.
44
45 --breaks
46 Enable GFM line breaks. Only works with the gfm option.
47
48 --sanitize
49 Sanitize output. Ignore any HTML input.
50
51 --smart-lists
52 Use smarter list behavior than the original markdown.
53
54 --lang-prefix [prefix]
55 Set the prefix for code block classes.
56
57 --mangle
58 Mangle email addresses.
59
60 --no-sanitize, -no-etc...
61 The inverse of any of the marked options above.
62
63 --silent
64 Silence error output.
65
66 -h, --help
67 Display help information.
68
69CONFIGURATION
70 For configuring and running programmatically.
71
72 Example
73
74 import { marked } from 'marked';
75 marked('*foo*', { gfm: true });
76
77BUGS
78 Please report any bugs to https://github.com/markedjs/marked.
79
80LICENSE
81 Copyright (c) 2011-2014, Christopher Jeffrey (MIT License).
82
83SEE ALSO
84 markdown(1), node.js(1)
85
86 marked(1)