Skip to content

Commit

Permalink
JSHint support. Closes #65
Browse files Browse the repository at this point in the history
  • Loading branch information
ashb committed Aug 22, 2013
2 parents ec4fa6c + b375db9 commit 866e281
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 76 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ language: node_js
node_js:
- "0.6"
- "0.8"
- "0.9"
- "0.10"
- "0.11"
2 changes: 2 additions & 0 deletions Changes.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## vNEXT - ???

- Fix content tight between two hr's disappearing (#106)
- Fix (yet more! gah) global variable leaks #99
- Fix JSHint warnings #65 - Thanks XhmikosR!

## v0.5.0 - 2013-07-26

Expand Down
21 changes: 10 additions & 11 deletions bin/md2html.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@
(function () {
"use strict";

var fs = require("fs")
, markdown = require("markdown").markdown
, nopt = require("nopt")
, stream
, opts
, buffer = ""
;
var fs = require("fs"),
markdown = require("markdown").markdown,
nopt = require("nopt"),
stream,
opts,
buffer = "";

opts = nopt(
{ "dialect": [ "Gruber", "Maruku"]
, "help": Boolean
{ "dialect": [ "Gruber", "Maruku"],
"help": Boolean
}
);

if (opts.help) {
var name = process.argv[1].split("/").pop()
var name = process.argv[1].split("/").pop();
console.warn( require("util").format(
"usage: %s [--dialect=DIALECT] FILE\n\nValid dialects are Gruber (the default) or Maruku",
name
Expand Down Expand Up @@ -49,4 +48,4 @@
console.log(html);
});

}())
}());
Loading

0 comments on commit 866e281

Please sign in to comment.