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

When running from a batch file, lines below `generate-md` cannot execute

Open Kotsuha opened this issue 4 years ago • 1 comments

generate-md --layout github --input "./md" --output "./dist"
PAUSE

HTML files are generated perfectly. However, PAUSE doesn't run.

Kotsuha avatar Mar 20 '21 18:03 Kotsuha

I've found a workaround. Create a convert-md-to-html.bat batch file:

@ECHO OFF
CD /D "%~dp0"

generate-md --layout github --input "%~1" --output "%~2"

EXIT /B 0

Create a test.bat batch file:

CALL convert-md-to-html "md" "dist"
ECHO.
ECHO Done

PAUSE

Run test.bat and I can have my lines below run.

Kotsuha avatar Mar 20 '21 19:03 Kotsuha