marked.1 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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] [\-\-tables] [\-\-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 \-\-tables
  71. Enable GFM tables. Only works with the gfm option.
  72. .TP
  73. .BI \-\-sanitize
  74. Sanitize output. Ignore any HTML input.
  75. .TP
  76. .BI \-\-smart\-lists
  77. Use smarter list behavior than the original markdown.
  78. .TP
  79. .BI \-\-lang\-prefix\ [\fIprefix\fP]
  80. Set the prefix for code block classes.
  81. .TP
  82. .BI \-\-mangle
  83. Mangle email addresses.
  84. .TP
  85. .BI \-\-no\-sanitize,\ \-no-etc...
  86. The inverse of any of the marked options above.
  87. .TP
  88. .BI \-\-silent
  89. Silence error output.
  90. .TP
  91. .BI \-h,\ \-\-help
  92. Display help information.
  93. .SH CONFIGURATION
  94. For configuring and running programmatically.
  95. .B Example
  96. require('marked')('*foo*', { gfm: true });
  97. .SH BUGS
  98. Please report any bugs to https://github.com/markedjs/marked.
  99. .SH LICENSE
  100. Copyright (c) 2011-2014, Christopher Jeffrey (MIT License).
  101. .SH "SEE ALSO"
  102. .BR markdown(1),
  103. .BR node.js(1)