How to create a PDF from a markdown file?

Nextcloud version 21.0.0 beta4
Operating system and version docker image linuxserver/nextcloud:version-20.0.1 upgraded to 21.0.0 beta4
Apache or nginx version:

root@70ff409239d8:/# apk list | grep nginx
nginx-1.18.0-r1 x86_64 {nginx} (BSD-2-Clause) [installed]

PHP version (eg, 7.1):

root@70ff409239d8:/# apk list | grep php
php7-7.3.24-r0 x86_64 {php7} (PHP-3.01 BSD LGPL-2.0-or-later MIT Zend-2.0) [installed]


I have created a markdown document with a number of embedded images and a reasonable amount of formatting. I would like to make this into a PDF and am running into problems finding out how. When I try to use the print dialog, I only get a single page that only has the visible part of the document on the screen.

Is there a way to generate a PDF that includes the embedded images from a markdown file?

Thank you.