simonhaenisch / md-to-pdf

Hackable CLI tool for converting Markdown files to PDF using Node.js and headless Chrome.
https://www.npmjs.com/md-to-pdf
MIT License
1.2k stars 110 forks source link

bug: indented codeblock is not rendered correctly #123

Open sushichan044 opened 2 years ago

sushichan044 commented 2 years ago

Context:

When I convert md to pdf, As shown in the image, All indented code block is not rendered correctly and the inside is transparent. Regardless of which CSS I use. But inline codes are displayed correctly.

image image

simonhaenisch commented 2 years ago

thanks for the report. until i have time to look into it, you can used fenced code blocks instead of indented ones as a workaround.

code here