doc: fix word wrapping for api stability boxes · nodejs/node@a63cd82

2 files changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -93,7 +93,8 @@ em code {

9393

color: white !important;

9494

margin: 0 0 1em 0;

9595

font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;

96-

font-weight: 700;

96+

padding: 1em;

97+

line-height: 1.5;

9798

}

9899
99100

.api_stability * {

Original file line numberDiff line numberDiff line change

@@ -349,7 +349,7 @@ function parseAPIHeader(text) {

349349
350350

text = text.replace(

351351

STABILITY_TEXT_REG_EXP,

352-

`<pre class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</pre>`

352+

`<div class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</div>`

353353

);

354354

return text;

355355

}