How to use --port flag #125
Answered
by
simonhaenisch
KevinYangMay
asked this question in
Q&A
-
Hi,I don't know how to use flag, can you provide some code examples,Thanks! @ @simonhaenisch |
Beta Was this translation helpful? Give feedback.
Answered by
simonhaenisch
May 30, 2022
Replies: 1 comment 1 reply
-
Hey, basically like |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
simonhaenisch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, basically like
md-to-pdf --port 12345
. TBH I don't think there's really a use case for it, because the process just finds an available port automatically by default (using https://github.com/sindresorhus/get-port). A port is needed because it spins up a local file server... if you want to know why, i suggest you jump into the source code but basically it's so that the Puppeteer browser instance that is used to generate the PDF can access images via relative paths.