mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
1 parent
0309619aa7
commit
eab2bea46f
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -400,7 +400,7 @@ function parseAPIHeader(text) {
|
||||
|
||||
text = text.replace(
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user