marked.1 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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] [\-s \fI<string>\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 \-s,\ \-\-string\ [\fIstring\fP]
  35. Specify string input instead of a file.
  36. .TP
  37. .BI \-t,\ \-\-tokens
  38. Output a token stream instead of html.
  39. .TP
  40. .BI \-\-pedantic
  41. Conform to obscure parts of markdown.pl as much as possible.
  42. Don't fix original markdown bugs.
  43. .TP
  44. .BI \-\-gfm
  45. Enable github flavored markdown.
  46. .TP
  47. .BI \-\-breaks
  48. Enable GFM line breaks. Only works with the gfm option.
  49. .TP
  50. .BI \-\-sanitize
  51. Sanitize output. Ignore any HTML input.
  52. .TP
  53. .BI \-\-smart\-lists
  54. Use smarter list behavior than the original markdown.
  55. .TP
  56. .BI \-\-lang\-prefix\ [\fIprefix\fP]
  57. Set the prefix for code block classes.
  58. .TP
  59. .BI \-\-mangle
  60. Mangle email addresses.
  61. .TP
  62. .BI \-\-no\-sanitize,\ \-no-etc...
  63. The inverse of any of the marked options above.
  64. .TP
  65. .BI \-\-silent
  66. Silence error output.
  67. .TP
  68. .BI \-h,\ \-\-help
  69. Display help information.
  70. .SH CONFIGURATION
  71. For configuring and running programmatically.
  72. .B Example
  73. import { marked } from 'marked';
  74. marked('*foo*', { gfm: true });
  75. .SH BUGS
  76. Please report any bugs to https://github.com/markedjs/marked.
  77. .SH LICENSE
  78. Copyright (c) 2011-2014, Christopher Jeffrey (MIT License).
  79. .SH "SEE ALSO"
  80. .BR markdown(1),
  81. .BR node.js(1)