marked.1.txt 2.1 KB

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