Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including skeldown with all npm packages installed. Try it out:

var skeldown = require("skeldown")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

skeldown v0.0.3

markdow + Skeleton css = skeldown

skeldown(1) -- convert markdown to html with skeleton.css


skeldown < file

skeldown file


given a markdown file (first command line argument or stdin), skeldown will convert it to HTML and insert it into a full HTML document. it will add skeleton.css and a syntax highlighter. skeldown also provides hooks to add more css and run transformations on the resulting markup via jquery.


css may be added with the --extracss option. simply specify any desired files:

$ skeldown --extracss foo.css,bar.css < > docs.html


extra js files to process the resulting html. this is really useful if you want to do dynamic things like generate unique, linkable id's for each bullet point, or maybe add a table of contents. the cool thing is that you just need to provide a functioni that takes a $head and $body parameter and performs any changes. jquery is used to make DOM manipulation easy. say you want to add a word count at the end of your body. you would run skeldown with the following command:

$ skeldown -j wordcount.js < > docs.html

and the contents of wordcount.js would look something like this:

exports.pipeline = function($head, $body) {
    var count = $body.text().match(/S+/g).length;
    $('<span class=wordcount>')
        .text('Word count: ' + count)

and that would add the following (dynamically generated) HTML to the resulting document:

<span class=wordcount>Word count: 1042</span>

configuration file

skeldown will check for a configuration file in ~/.skeldown/config.json that updates the command line configurations. so if, for instance, you'd like all of your skeldown files to have a particular style, you can put the following in ~/.skeldown/config.json:

  "extracss": "style.css"

which is equivalent to calling:

$ skeldown --extracss ~/.skeldown/style.css

all paths in ~/.skeldown/config.json are evaluated relative to the ~/.skeldown directory.


  • -o, --out: output file. defaults to stdout.

  • -e, --extracss: css files to insert. see [ADDITIONAL CSS][]

  • -j, --jspipeline: see [ADDITIONAL PROCESSING STEPS][]

  • -n, --noprettify: DON'T use code prettifier

  • -t, --prettifytheme: prettify theme [default: "ascetic"]

  • -h, --help: display this help message


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free