Bug: PDF Codeblock & Code Issues #873

Closed
opened 2026-02-04 22:38:55 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @aljawaid on GitHub (Oct 20, 2018).

Describe the bug

  1. ```codeblock``` is not rendered properly in pdf. The text is white so unreable.
  2. ```codeblock``` is not rendered properly in pdf. It doesn't break lines.
  3. 'code' is fine except the padding-bottom is too less. Looks fine on screen but not in pdf.

Steps To Reproduce

PDF:

image

Expected behavior

Bookstack:

image

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 24.0.0
  • PHP Version: 7.0.32
  • Hosting Method (Nginx/Apache/Docker): Apache
Originally created by @aljawaid on GitHub (Oct 20, 2018). ## **Describe the bug** 1. \```codeblock``` is not rendered properly in pdf. The text is white so unreable. 2. \```codeblock``` is not rendered properly in pdf. It doesn't break lines. 3. \'code' is fine except the `padding-bottom` is too less. Looks fine on screen but not in pdf. ## **Steps To Reproduce** ### **PDF:** ![image](https://user-images.githubusercontent.com/10233708/47255090-45a39780-d463-11e8-8d1c-8eb6a4d9537f.png) ## **Expected behavior** ### **Bookstack:** ![image](https://user-images.githubusercontent.com/10233708/47255102-84395200-d463-11e8-86c2-119aefcb6d08.png) ## **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): 24.0.0 - PHP Version: 7.0.32 - Hosting Method (Nginx/Apache/Docker): Apache
OVERLORD added the 🐛 Bug🔍 Pending Validation🚚 Export System labels 2026-02-04 22:38:55 +03:00
Author
Owner

@aljawaid commented on GitHub (Nov 29, 2018):

@ssddanbrown Any update to this?

@aljawaid commented on GitHub (Nov 29, 2018): @ssddanbrown Any update to this?
Author
Owner

@ssddanbrown commented on GitHub (Jun 13, 2022):

Sorry for the slightly late response 😬

Just tested this on a fairly fresh instance, using the default DOMPDF renderer, and I could not reproduce this.
I'll assume this may be instance specific or fixed over the last 4 years or so, so I'll therefore close this off but if this still exists feel free to open a new bug issue, detailing your instance along with specific markdown examples to reproduce the issues.

@ssddanbrown commented on GitHub (Jun 13, 2022): Sorry for the slightly late response 😬 Just tested this on a fairly fresh instance, using the default DOMPDF renderer, and I could not reproduce this. I'll assume this may be instance specific or fixed over the last 4 years or so, so I'll therefore close this off but if this still exists feel free to open a new bug issue, detailing your instance along with specific markdown examples to reproduce the issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#873