Allow overflow wrap in pre
blocks
#5384
Closed
Zelzahn
started this conversation in
Feature requests
Replies: 1 comment 1 reply
-
There is no right or wrong answer here. We chose to mimic the behaviour of GitHub which doesn't wrap lines in codeblocks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behaviour:
What I would like:
To have this, the following CSS rule would need to be added to the
pre
tag:white-space: pre-wrap;
. I do not know if there are any uses ofpre
without an accompanyingcode
, so I'm not sure if this CSS rule would be best limited topre
tags with acode
inside or not.The only situation where I could see that you wouldn't want this wrap would be when the
code
contains a very long one-liner. But that would also be difficult to read and better split up into multiple lines, e.g. by using\
in Python.Beta Was this translation helpful? Give feedback.
All reactions