 
 fs = require "fs"
 {join, basename, resolve, normalize, dirname} = require "path"
+exists = fs.existsSync or require("path").existsSync
 marked = require "marked"
 optimist = require "optimist"
 _ = require "underscore"


  argv.extracss = argv.extracss?.split(",") or []

  for script in argv.jspipeline?.split(",") or []
    pipeline.push(require(resolve(script)).pipeline)
    # pipeline.push(require('/Users/astacy/code/skeldown/etc/skeldown/pipeline.js').pipeline)

  pipeline.unshift prettify if not argv.noprettify


highlight = require("highlight").Highlight
read = (filename) -> fs.readFileSync filename, "utf8"
thisDir = dirname module.filename
configDir = join process.env.HOME, '.skeldown'
argv = null

# like jQuery.fn.html except it includes the outer tags (and outer tag attrs)
