bug: images not rendered with cat command
fr-olivier opened this issue · 1 comments
fr-olivier commented
Context:
- version (
md-to-pdf -v
): 5.1.0 - platform: macOS
- node version: v12.4.0
Generating a pdf with cat file.md | md-to-pdf > path/to/output.pdf
doesn't render attached images (broken path icon), while same command with md-to-pdf on same file does render images.
simonhaenisch commented
Depending on where the file is, you'll have to specify the --basedir
flag (see options) so that relative image paths are resolved correctly. It defaults to process.cwd()
by default.