doc: fix word wrapping for api stability boxes
PR-URL: https://github.com/nodejs/node/pull/14809 Fixes: https://github.com/nodejs/nodejs.org/issues/1337 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
parent
0309619aa7
commit
eab2bea46f
@ -93,7 +93,8 @@ em code {
|
|||||||
color: white !important;
|
color: white !important;
|
||||||
margin: 0 0 1em 0;
|
margin: 0 0 1em 0;
|
||||||
font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
|
font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
|
||||||
font-weight: 700;
|
padding: 1em;
|
||||||
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.api_stability * {
|
.api_stability * {
|
||||||
|
@ -400,7 +400,7 @@ function parseAPIHeader(text) {
|
|||||||
|
|
||||||
text = text.replace(
|
text = text.replace(
|
||||||
STABILITY_TEXT_REG_EXP,
|
STABILITY_TEXT_REG_EXP,
|
||||||
`<pre class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</pre>`
|
`<div class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</div>`
|
||||||
);
|
);
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user