Open tangjiabing opened 5 years ago
Thanks for reporting the issue.
I was first a bit confused because it looks like v0.11.15 doen't have the export to pdf
option.
But I could test your markdown snippet on master and I don't get the problem.
I'm not getting any styles in the generated pdf. Here is the PDF I've created on Windows 10 with the export to pdf
feature.
exported-pdf.pdf
How did you create the PDF? Have you created it with a printer e.g. Microsoft print to PDF? Or a different PDF printer? With printing to a pdf I'm getting a similar output like yours with cutted text - it seems like Microsoft print to PDF is generating an image of the preview section. I have to check how to avoid the cutted text.
After changing the page size before pdf printing to letter
instead of A4
fixes the cutted text but I think that's just a work-around. It should also work with A4 output.
printed-test-letter-page.pdf
@boostio has funded $40.00 to this issue.
@tangjiabing Are you still experiencing this issue with the latest version 0.11.17?
Reproducible on Windows 10 with 0.11.17:
Exporting a large code block to PDF causes misalignment:
Version: 0.11.15 Operating System: Windows 10 Bug: There are some display problems when markdown to export as pdf !
test data as follows!!!!!
test data of markdown to export as pdf.txt
Hope to help developers locate problems!!!!
And Hope to be fixed quickly, thanks!!!!!!!!
@yosmoc @azu
IssueHunt Summary
### Sponsors (Total: $40.00) - [ boostio](https://issuehunt.io/u/boostio) ($40.00) #### [Become a sponsor now!](https://issuehunt.io/r/BoostIo/Boostnote/issues/2984) #### [Or submit a pull request to get the deposits!](https://issuehunt.io/r/BoostIo/Boostnote/issues/2984) ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/BoostIo/Boostnote/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds.