Code block Nesting when it shouldn't #1876

Closed
opened 2026-02-05 02:06:48 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @Zyzto on GitHub (Sep 30, 2020).

Describe the bug
Code block is nesting and you can't edit previous settings

Steps To Reproduce
Steps to reproduce the behavior:
1.Create/edit page
2.input text
3.make it codeblock
4.make it again code block it will now switch to code lines
5.make it codeblock it will now become one line with nested borders after the 4th~5th time of repeating this

Expected behavior
Every time I click codeblock or press CTRL+E, it should display the highlighted code block and be able to change settings

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): BookStack v0.30.1
  • PHP Version: 7.2.24
  • Hosting Method (Nginx/Apache/Docker): Nginx
Originally created by @Zyzto on GitHub (Sep 30, 2020). **Describe the bug** Code block is nesting and you can't edit previous settings **Steps To Reproduce** Steps to reproduce the behavior: 1.Create/edit page 2.input text 3.make it codeblock 4.make it again code block it will now switch to code lines 5.make it codeblock it will now become one line with nested borders after the 4th~5th time of repeating this **Expected behavior** Every time I click codeblock or press CTRL+E, it should display the highlighted code block and be able to change settings **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): BookStack v0.30.1 - PHP Version: 7.2.24 - Hosting Method (Nginx/Apache/Docker): Nginx
Author
Owner

@ssddanbrown commented on GitHub (Sep 30, 2020):

Hi @Zyzto,
Thanks for reporting.

I've managed to replicate this issue but only when inside a list, Are you able to replicate this outside of lists?

@ssddanbrown commented on GitHub (Sep 30, 2020): Hi @Zyzto, Thanks for reporting. I've managed to replicate this issue but only when inside a list, Are you able to replicate this outside of lists?
Author
Owner

@Zyzto commented on GitHub (Sep 30, 2020):

@ssddanbrown I haven't noticed it,but yeah it only happened in lists only. Just tested it.

@Zyzto commented on GitHub (Sep 30, 2020): @ssddanbrown I haven't noticed it,but yeah it only happened in lists only. Just tested it.
Author
Owner

@ssddanbrown commented on GitHub (Oct 1, 2020):

@Zyzto Thanks for confirming. I think case I'll close this off since it's really dependant on the request of code being supported within list blocks.

@ssddanbrown commented on GitHub (Oct 1, 2020): @Zyzto Thanks for confirming. I think case I'll close this off since it's really dependant on the request of code being supported within list blocks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1876