fixed a small bug where the output pdf was 'example.md.pdf'