Sucks Markdown outta yo source code, regardless of language.
Basically, it'll transform:
// # Function identity(a)
// The identity function.
function identity(a){ return a }
Into:
# Function identity(a)
The identity function.
```js
function identity(a) { return a }
```
$ npm install -g sug
$ sug convert your-file.js
$ cat your-file.md
sug --- Sucks Markdown outta your source files.
sug languages Display supported languages
sug convert <files...> Converts files to Markdown
sug -h | --help Displays help text
sug --version Displays version number
Options:
-o --output=DIR The output directory
-l --language=LANG Forces using language for all files
-d --doconly Omits code sections from the output.
Sug will run sweetly on top of Node 0.10+, with the new Stream support.
Copyright (c) 2013 Quildreen Motta.
Released under the MIT licence.