Wraping large code blocks #425

Closed
opened 2026-02-04 19:54:08 +03:00 by OVERLORD · 9 comments
Owner

Originally created by @Alwaysin on GitHub (Sep 10, 2017).

For Feature Requests

Desired Feature: wraping when a code block is too large, as it is already done when not a code block

For Bug Reports

  • BookStack Version: 0.18
  • PHP Version: 7
  • MySQL Version: 5.6 MariaDB
Expected Behavior

wraping

Actual Behavior

not wraping :

sans titre

Originally created by @Alwaysin on GitHub (Sep 10, 2017). ### For Feature Requests Desired Feature: wraping when a code block is too large, as it is already done when not a code block ### For Bug Reports * BookStack Version: 0.18 * PHP Version: 7 * MySQL Version: 5.6 MariaDB ##### Expected Behavior wraping ##### Actual Behavior not wraping : ![sans titre](https://user-images.githubusercontent.com/7189936/30250945-3a999240-9657-11e7-8cfc-5e475b23299d.png)
OVERLORD added the 🎨 Design label 2026-02-04 19:54:08 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Sep 10, 2017):

@Alwaysin Was that content a code block or inline code?

If a block, And you're upgrading from BookStack pre-v0.17 then try clearing the browser cache and see if that helps.

@ssddanbrown commented on GitHub (Sep 10, 2017): @Alwaysin Was that content a code block or inline code? If a block, And you're upgrading from BookStack pre-v0.17 then try clearing the browser cache and see if that helps.
Author
Owner

@Alwaysin commented on GitHub (Sep 10, 2017):

What is the difference between the two?

I use ``` for code, should I use something else?

I already was on 0.17.4 (where the behaviour was the same) and using another browser which never visited bookstack before, it does the same.

@Alwaysin commented on GitHub (Sep 10, 2017): What is the difference between the two? I use ``` for code, should I use something else? I already was on 0.17.4 (where the behaviour was the same) and using another browser which never visited bookstack before, it does the same.
Author
Owner

@ssddanbrown commented on GitHub (Sep 11, 2017):

@Alwaysin Ah, You use the markdown editor then?

Yeah, triple backtick for code blocks, Single for inline code. triple backtick blocks should be transformed into codemirror instances when viewing the page. Do you see line numbers on your code blocks when viewing?

@ssddanbrown commented on GitHub (Sep 11, 2017): @Alwaysin Ah, You use the markdown editor then? Yeah, triple backtick for code blocks, Single for inline code. triple backtick blocks should be transformed into codemirror instances when viewing the page. Do you see line numbers on your code blocks when viewing?
Author
Owner

@Alwaysin commented on GitHub (Sep 11, 2017):

Yes I'm using MD editor.
I have no line numbers, and it is the same behaviour when I use single backtick :'(

@Alwaysin commented on GitHub (Sep 11, 2017): Yes I'm using MD editor. I have no line numbers, and it is the same behaviour when I use single backtick :'(
Author
Owner

@ssddanbrown commented on GitHub (Sep 11, 2017):

@Alwaysin Can you give an example of the exact code format you use for a codeblock? Just want to ensure the syntax you're using is what I expect.

@ssddanbrown commented on GitHub (Sep 11, 2017): @Alwaysin Can you give an example of the exact code format you use for a codeblock? Just want to ensure the syntax you're using is what I expect.
Author
Owner

@Alwaysin commented on GitHub (Sep 11, 2017):

Not sure it is what you expect but:

```blablabla```

`blablabla`
@Alwaysin commented on GitHub (Sep 11, 2017): Not sure it is what you expect but: ```` ```blablabla``` `blablabla`
Author
Owner

@ssddanbrown commented on GitHub (Sep 11, 2017):

@Alwaysin Can you try:

```
blablabla
```

(With the newlines)

@ssddanbrown commented on GitHub (Sep 11, 2017): @Alwaysin Can you try: \``` blablabla \``` (With the newlines)
Author
Owner

@Alwaysin commented on GitHub (Sep 12, 2017):

Ah, my bad! With the new lines I got line numbers and the scrolling bar as well, so it's all good.
Even though maybe wraping would be better than the scrolling bar?

@Alwaysin commented on GitHub (Sep 12, 2017): Ah, my bad! With the new lines I got line numbers and the scrolling bar as well, so it's all good. Even though maybe wraping would be better than the scrolling bar?
Author
Owner

@ssddanbrown commented on GitHub (Dec 12, 2020):

I believe this was fixed in 2019 by c14611d14b so I'll therefore close this off.
Thanks for reporting @Alwaysin.

@ssddanbrown commented on GitHub (Dec 12, 2020): I believe this was fixed in 2019 by c14611d14bfd87148fbd96c9e33ed171b01dbd6a so I'll therefore close this off. Thanks for reporting @Alwaysin.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#425