Skip to content

Commit 45b53fe

Browse files
fix(changelog): keep line breaks in code blocks (#59762)
Co-authored-by: Hona <10430890+Hona@users.noreply.github.com>
1 parent 14e378b commit 45b53fe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎services/changelog/src/style.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ main a:hover { color: var(--ink-strong); text-decoration-color: var(--underline-
118118
.markdown li::before { content: "\\2013"; position: absolute; left: 0; color: var(--ink-weaker); }
119119
120120
main code { font-family: var(--mono); font-size: 0.83em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink-code); white-space: nowrap; }
121+
main pre { margin: 0 0 12px; overflow-x: auto; }
122+
main pre code { white-space: pre; }
121123
main strong { font-weight: 600; }
122124
123125
.notice { font-size: 20px; line-height: 1.65; color: var(--ink-weak); }

0 commit comments

Comments
 (0)