fix bin/marked options

This commit is contained in:
Christopher Jeffrey 2012-03-10 16:33:51 -06:00
parent 3430b72827
commit b804e8ed5b

View File

@ -105,9 +105,11 @@ var main = function(argv) {
write();
function write() {
marked.setOptions(options);
data = tokens
? JSON.stringify(marked.lexer(data), null, 2)
: marked(data, options);
: marked(data);
if (!output) {
process.stdout.write(data + '\n');