1.0.2 • Published 9 months ago

@commenthol/turndown-cli v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

turndown-cli

A turndown CLI with gfm plugin enabled.

$ bin/turndown.js --help

Usages:
  turndown (-h|-v)
  turndown <source> (<target>)
  turndown (<option>) <source> (<target>)

Parameters:
  source    HTML source filepath
  target    Markdown target filepath
  option    Any option from provided options

Options:
  -h --help       Show help contents
  -v --version    Show version information
  -@              Output to console
  -t --head       Heading style
                  atx,setext
  -r --hr         Horizontal rule
                  -,*,_
  -b --bullet     Bullet list marker
                  -,*,+
  -c --code       Code block style
                  fenced,indented
  -f --fence      Fence style
                  `,~
  -e --em         Em delimiter
                  _,*
  -s --strong     Strong delimiter
                  **,__
  -l --link       Link style
                  inlined,referenced
  -u --linkref    Link reference style
                  full,collapsed,shortcut
  -p --pre        Preformatted code
                  false,true

Note that the first choice is default for each options.

Examples:
  turndown -h
  turndown sample.html
  turndown sample.html sample.md
  turndown -t setext -r - -c fenced -f ` -s ** sample.html

The turndown-plugin-gfm is a modified version of an archived project. The modified sources are part of this project and can be found under packages.

License

MIT licensed