marked.1 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. .ds q \N'34'
  2. .TH marked 1
  3. .SH NAME
  4. marked \- a javascript markdown parser
  5. .SH SYNOPSIS
  6. .B marked
  7. [\-o \fI<output>\fP] [\-i \fI<input>\fP] [\-\-help]
  8. [\-\-tokens] [\-\-pedantic] [\-\-gfm]
  9. [\-\-breaks] [\-\-sanitize]
  10. [\-\-smart\-lists] [\-\-lang\-prefix \fI<prefix>\fP]
  11. [\-\-no\-etc...] [\-\-silent] [\fIfilename\fP]
  12. .SH DESCRIPTION
  13. .B marked
  14. is a full-featured javascript markdown parser, built for speed.
  15. It also includes multiple GFM features.
  16. .SH EXAMPLES
  17. .TP
  18. cat in.md | marked > out.html
  19. .TP
  20. echo "hello *world*" | marked
  21. .TP
  22. marked \-o out.html \-i in.md \-\-gfm
  23. .TP
  24. marked \-\-output="hello world.html" \-i in.md \-\-no-breaks
  25. .SH OPTIONS
  26. .TP
  27. .BI \-o,\ \-\-output\ [\fIoutput\fP]
  28. Specify file output. If none is specified, write to stdout.
  29. .TP
  30. .BI \-i,\ \-\-input\ [\fIinput\fP]
  31. Specify file input, otherwise use last argument as input file.
  32. If no input file is specified, read from stdin.
  33. .TP
  34. .BI \-\-test
  35. Makes sure the test(s) pass.
  36. .RS
  37. .PP
  38. .B \-\-glob [\fIfile\fP]
  39. Specify which test to use.
  40. .PP
  41. .B \-\-fix
  42. Fixes tests.
  43. .PP
  44. .B \-\-bench
  45. Benchmarks the test(s).
  46. .PP
  47. .B \-\-time
  48. Times The test(s).
  49. .PP
  50. .B \-\-minified
  51. Runs test file(s) as minified.
  52. .PP
  53. .B \-\-stop
  54. Stop process if a test fails.
  55. .RE
  56. .TP
  57. .BI \-t,\ \-\-tokens
  58. Output a token stream instead of html.
  59. .TP
  60. .BI \-\-pedantic
  61. Conform to obscure parts of markdown.pl as much as possible.
  62. Don't fix original markdown bugs.
  63. .TP
  64. .BI \-\-gfm
  65. Enable github flavored markdown.
  66. .TP
  67. .BI \-\-breaks
  68. Enable GFM line breaks. Only works with the gfm option.
  69. .TP
  70. .BI \-\-sanitize
  71. Sanitize output. Ignore any HTML input.
  72. .TP
  73. .BI \-\-smart\-lists
  74. Use smarter list behavior than the original markdown.
  75. .TP
  76. .BI \-\-lang\-prefix\ [\fIprefix\fP]
  77. Set the prefix for code block classes.
  78. .TP
  79. .BI \-\-mangle
  80. Mangle email addresses.
  81. .TP
  82. .BI \-\-no\-sanitize,\ \-no-etc...
  83. The inverse of any of the marked options above.
  84. .TP
  85. .BI \-\-silent
  86. Silence error output.
  87. .TP
  88. .BI \-h,\ \-\-help
  89. Display help information.
  90. .SH CONFIGURATION
  91. For configuring and running programmatically.
  92. .B Example
  93. require('marked')('*foo*', { gfm: true });
  94. .SH BUGS
  95. Please report any bugs to https://github.com/markedjs/marked.
  96. .SH LICENSE
  97. Copyright (c) 2011-2014, Christopher Jeffrey (MIT License).
  98. .SH "SEE ALSO"
  99. .BR markdown(1),
  100. .BR node.js(1)