Initial commit of akmon project
This commit is contained in:
23
md2pdf.bat
Normal file
23
md2pdf.bat
Normal file
@@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
REM Markdown to PDF with Mermaid support
|
||||
REM Usage: md2pdf.bat input.md output.pdf
|
||||
|
||||
if "%~2"=="" (
|
||||
echo Usage: %0 input.md output.pdf
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
set INPUT=%~1
|
||||
set OUTPUT=%~2
|
||||
|
||||
echo Converting %INPUT% to %OUTPUT% with Mermaid support...
|
||||
|
||||
REM Use pandoc with mermaid-filter to convert markdown to PDF
|
||||
pandoc "%INPUT%" -o "%OUTPUT%" --filter mermaid-filter --pdf-engine=pdflatex
|
||||
|
||||
if %errorlevel% equ 0 (
|
||||
echo Conversion completed successfully!
|
||||
) else (
|
||||
echo Conversion failed!
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
Reference in New Issue
Block a user