Code Block not rendering correctly in editor #381

Closed
opened 2026-02-04 19:14:57 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @RixzZ on GitHub (Jul 20, 2017).

For Bug Reports

  • BookStack Version: BookStack v0.17.1
  • PHP Version: PHP 5.6.31
  • MySQL Version: MariaDB 10.2.7
Expected Behavior

Show the code block correctly, not like in this picture:

bad

Actual Behavior

Right now, in the editor view it shows like the image I pasted above. In the page view it shows correctly:

good

This is only happening after updating to the 17.1 version.

Originally created by @RixzZ on GitHub (Jul 20, 2017). ### For Bug Reports * BookStack Version: BookStack v0.17.1 * PHP Version: PHP 5.6.31 * MySQL Version: MariaDB 10.2.7 ##### Expected Behavior Show the code block correctly, not like in this picture: ![bad](https://user-images.githubusercontent.com/1339272/28404338-2f851bd8-6d29-11e7-9f89-d9bd4016ff09.png) ##### Actual Behavior Right now, in the editor view it shows like the image I pasted above. In the page view it shows correctly: ![good](https://user-images.githubusercontent.com/1339272/28404513-ef8faae2-6d29-11e7-8cd3-0fa67fc245f5.png) This is only happening after updating to the 17.1 version.
Author
Owner

@RixzZ commented on GitHub (Jul 20, 2017):

Well, solved running:

php artisan cache:clear
php artisan view:clear

@RixzZ commented on GitHub (Jul 20, 2017): Well, solved running: > php artisan cache:clear > php artisan view:clear
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#381