mirror of
https://github.com/markedjs/marked
synced 2024-11-23 09:48:17 +00:00
fix bin/marked options
This commit is contained in:
parent
3430b72827
commit
b804e8ed5b
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user