mixu / markdown-styles

Markdown to static HTML generator and multiple CSS themes for Markdown
1.85k stars 250 forks source link

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

Open Kotsuha opened 3 years ago

Kotsuha commented 3 years ago
generate-md --layout github --input "./md" --output "./dist"
PAUSE

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

Kotsuha commented 3 years ago

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.