mirror of
https://github.com/markedjs/marked
synced 2024-11-23 18:02:12 +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 (string) {
|
|
||||||
return callback(null, string);
|
|
||||||
}
|
|
||||||
if (!input) {
|
if (!input) {
|
||||||
if (files.length <= 2) {
|
if (files.length <= 2) {
|
||||||
|
if (string) {
|
||||||
|
return callback(null, string);
|
||||||
|
}
|
||||||
return getStdin(callback);
|
return getStdin(callback);
|
||||||
}
|
}
|
||||||
input = files.pop();
|
input = files.pop();
|
||||||
|
Loading…
Reference in New Issue
Block a user