mixu/markdown-styles

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

Kotsuha opened this issue · 1 comments

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

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

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.