Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program line argument to specify the source #7

Closed
cansik opened this issue Jan 10, 2018 · 5 comments
Closed

Program line argument to specify the source #7

cansik opened this issue Jan 10, 2018 · 5 comments

Comments

@cansik
Copy link

cansik commented Jan 10, 2018

It would be great to have a program line argument to pass the slide markdown file to the remarker:

npx remarker --source myslide.md

Because I have multiple slides at the moment in the same folder and would like to leave the name as it is.

@kt3k
Copy link
Owner

kt3k commented Jan 11, 2018

@cansik Thanks for the feedback. I added --source option to the cli at v1.6.0. Please check the latest version!

@cansik
Copy link
Author

cansik commented Jan 12, 2018

It seems that now remarker is serve two times and blocking itself:

npx remarker -s Lernziele.md
berber [19:04:58] serving
berber [19:04:58] Reading: slides.md
berber [19:04:58] Reading: /Users/cansik/.npm/_npx/49227/lib/node_modules/remarker/vendor/remark.js
berber [19:04:58] Reading: assets/**/*.*
berber [19:04:58] serving
berber [19:04:58] Reading: slides.md
berber [19:04:58] Reading: /Users/cansik/node_modules/remarker/vendor/remark.js
berber [19:04:58] Reading: assets/**/*.*
berber [19:04:58] Server started at: https://localhost:6275/
berber [19:04:58] See debug info at: https://localhost:6275/__remarker__
berber [19:04:58] Error: The port number 6275 is already in use

@kt3k
Copy link
Owner

kt3k commented Jan 13, 2018

@cansik
The above doesn't happen on my side. It seems very strange.

As far as I read the above log messages, remarker started from 2 places /Users/cansik/node_modules/remarker/ and /Users/cansik/.npm/_npx/49227/lib/node_modules/remarker/. I guess npx is doing something wrong. Could you check about npx or just avoid using it and invoke remarker directly?

BTW I found at least one error on option parsing (-s handling was wrong 66d9212). I fixed it and released as v1.6.1.

@kt3k
Copy link
Owner

kt3k commented Jan 13, 2018

Sorry. npx wasn't a problem. When I installed remarker both locally and globally and invoked global version, then the above behavior happpened. So using the local version explicitly or removing the global version would solve the problem.

@cansik
Copy link
Author

cansik commented Jan 13, 2018

Yes, removing one version helped! Great and thank you for the help 👍

@cansik cansik closed this as completed Jan 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants