markdown-html icon indicating copy to clipboard operation
markdown-html copied to clipboard

Can't run it w/input from stdin

Open tenuki opened this issue 5 years ago • 0 comments

Version 0.0.8

in win10:

type sample.md | node node_modules\markdown-html\index.js -i
path.js:28
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:28:11)
    at Object.extname (path.js:918:5)
    at module.exports (C:\Users\user\repos\tmp\md2pdf\node_modules\markdown-html\lib\compile.js:10:47)
    at Socket.<anonymous> (C:\Users\user\repos\tmp\md2pdf\node_modules\markdown-html\lib\stdio.js:8:9)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:246:13)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)

in linux

$ /home/user/node_modules/.bin/markdown-html -i
internal/validators.js:107
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:107:11)
    at Object.extname (path.js:1223:5)
    at module.exports (/home/user/node_modules/markdown-html/lib/compile.js:14:47)
    at Socket.<anonymous> (/home/user/node_modules/markdown-html/lib/stdio.js:8:9)
    at Socket.emit (events.js:200:13)
    at addChunk (_stream_readable.js:290:12)
    at readableAddChunk (_stream_readable.js:267:13)
    at Socket.Readable.push (_stream_readable.js:226:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)

any hint is welcome!

tenuki avatar Jun 01 '19 04:06 tenuki