mirror of
https://github.com/markedjs/marked
synced 2024-11-23 09:48:17 +00:00
prefer input
This commit is contained in:
parent
0dcb02f643
commit
f03a576063
@ -120,11 +120,11 @@ function main(argv, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getData(callback) {
|
function getData(callback) {
|
||||||
|
if (!input) {
|
||||||
|
if (files.length <= 2) {
|
||||||
if (string) {
|
if (string) {
|
||||||
return callback(null, string);
|
return callback(null, string);
|
||||||
}
|
}
|
||||||
if (!input) {
|
|
||||||
if (files.length <= 2) {
|
|
||||||
return getStdin(callback);
|
return getStdin(callback);
|
||||||
}
|
}
|
||||||
input = files.pop();
|
input = files.pop();
|
||||||
|
Loading…
Reference in New Issue
Block a user