On linux it will work well.. on windows have to add gtk windows runtime or the issue can be solved with wsl https://medium.com/@01one/create-your-own-markdown-to-pdf-converter-with-python-7ae4d0a1c772