https://github.com/commenthol/turndown-cli
a cli for turndown with support for gfm
https://github.com/commenthol/turndown-cli
Last synced: 12 months ago
JSON representation
a cli for turndown with support for gfm
- Host: GitHub
- URL: https://github.com/commenthol/turndown-cli
- Owner: commenthol
- License: mit
- Created: 2022-02-17T18:37:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-19T19:57:30.000Z (almost 3 years ago)
- Last Synced: 2025-07-04T14:30:50.283Z (12 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# turndown-cli
A [turndown]() CLI with gfm plugin enabled.
```
$ bin/turndown.js --help
Usages:
turndown (-h|-v)
turndown ()
turndown () ()
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](https://github.com/laurent22/joplin-turndown-plugin-gfm.git) is a modified version of an archived project. The modified sources are part of this project and can be found under `packages`.
# License
[MIT](./LICENSE) licensed