marked.1.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. marked(1) General Commands Manual marked(1)
  2. NAME
  3. marked - a javascript markdown parser
  4. SYNOPSIS
  5. marked [-o <output>] [-i <input>] [--help] [--tokens] [--pedantic]
  6. [--gfm] [--breaks] [--sanitize] [--smart-lists] [--lang-prefix <pre-
  7. fix>] [--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. --test Makes sure the test(s) pass.
  23. --glob [file] Specify which test to use.
  24. --fix Fixes tests.
  25. --bench Benchmarks the test(s).
  26. --time Times The test(s).
  27. --minified Runs test file(s) as minified.
  28. --stop Stop process if a test fails.
  29. -t, --tokens
  30. Output a token stream instead of html.
  31. --pedantic
  32. Conform to obscure parts of markdown.pl as much as possible.
  33. Don't fix original markdown bugs.
  34. --gfm Enable github flavored markdown.
  35. --breaks
  36. Enable GFM line breaks. Only works with the gfm option.
  37. --sanitize
  38. Sanitize output. Ignore any HTML input.
  39. --smart-lists
  40. Use smarter list behavior than the original markdown.
  41. --lang-prefix [prefix]
  42. Set the prefix for code block classes.
  43. --mangle
  44. Mangle email addresses.
  45. --no-sanitize, -no-etc...
  46. The inverse of any of the marked options above.
  47. --silent
  48. Silence error output.
  49. -h, --help
  50. Display help information.
  51. CONFIGURATION
  52. For configuring and running programmatically.
  53. Example
  54. require('marked')('*foo*', { gfm: true });
  55. BUGS
  56. Please report any bugs to https://github.com/markedjs/marked.
  57. LICENSE
  58. Copyright (c) 2011-2014, Christopher Jeffrey (MIT License).
  59. SEE ALSO
  60. markdown(1), node.js(1)
  61. marked(1)