Skip to content

SFLScientific/MDtoPDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MD to PDF conversion

Overview

Looks for any md files with names (case-insensitive) starting with "README" and creates a PDF format.

Implements this command to build a docker container (note svg is not working, use png format for images instead).

docker build -t pandoc-with-rsvg -f Dockerfile .

Runs this command with the specified files in entrypoint.sh

docker run --rm -v ${PWD}:/data pandoc-with-rsvg

Troubleshooting

Issue of figures not appearing in PDF file:

  • Do not use .svg format for image files
  • Pandoc has multiple restrictions on html formatting. Use their native format instead (see here for more information.)