[ad_1]
Hi @jlhblwdsjhbiul, great question. It looks like the test there doesn’t have any block-related markup, specifically this class:
wp-block-code
The sample text is just using pre, which uses the browser default of no-wrap. The sample also uses Lorem. Its long lines might look better formatted as a paragraph than code with all of its manual line breaks might.
If you want to wrap all pre-blocks regardless of class, something like this will work:
pre {
text-wrap: pretty;
}Hoping that helps!
@supernovia thanks for the reply. I’m a beginner at this. I switched from visual editor to code editor and could see what you meant when I tried to recreate it on my site.
Appreciate your help, I learned something new today!
