We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b90d6bb commit ddfa0aeCopy full SHA for ddfa0ae
1 file changed
Web/wwwroot/css/site.css
@@ -412,6 +412,18 @@ pre[class*="language-"] {
412
transition: border-color 0.3s ease;
413
}
414
415
+/* Word wrap for code blocks without language specification */
416
+pre:not([class*="language-"]) {
417
+ position: relative;
418
+ margin: 1.5rem 0;
419
+ border-radius: 0.5rem;
420
+ border: 1px solid var(--border-color);
421
+ padding: 1.25rem !important;
422
+ white-space: pre-wrap; /* Since this is not a language-specific block, enable wrapping */
423
+ word-wrap: break-word; /* Allow breaking of words */
424
+ transition: border-color 0.3s ease;
425
+}
426
+
427
/* Code styling with Consolas fonts */
428
pre[class*="language-"] code,
429
code[class*="language-"],
0 commit comments