Skip to content

Commit 55dc0bc

Browse files
TrottMylesBorins
authored andcommitted
doc: use code markup/markdown in headers in globals documentation
Backport-PR-URL: #31108 PR-URL: #31086 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent f5e0e20 commit 55dc0bc

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

doc/api/globals.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The objects listed here are specific to Node.js. There are [built-in objects][]
1717
that are part of the JavaScript language itself, which are also globally
1818
accessible.
1919

20-
## Class: Buffer
20+
## Class: `Buffer`
2121
<!-- YAML
2222
added: v0.1.103
2323
-->
@@ -28,15 +28,15 @@ added: v0.1.103
2828

2929
Used to handle binary data. See the [buffer section][].
3030

31-
## \_\_dirname
31+
## `__dirname`
3232

3333
This variable may appear to be global but is not. See [`__dirname`][].
3434

35-
## \_\_filename
35+
## `__filename`
3636

3737
This variable may appear to be global but is not. See [`__filename`][].
3838

39-
## clearImmediate(immediateObject)
39+
## `clearImmediate(immediateObject)`
4040
<!-- YAML
4141
added: v0.9.1
4242
-->
@@ -45,7 +45,7 @@ added: v0.9.1
4545

4646
[`clearImmediate`][] is described in the [timers][] section.
4747

48-
## clearInterval(intervalObject)
48+
## `clearInterval(intervalObject)`
4949
<!-- YAML
5050
added: v0.0.1
5151
-->
@@ -54,7 +54,7 @@ added: v0.0.1
5454

5555
[`clearInterval`][] is described in the [timers][] section.
5656

57-
## clearTimeout(timeoutObject)
57+
## `clearTimeout(timeoutObject)`
5858
<!-- YAML
5959
added: v0.0.1
6060
-->
@@ -63,7 +63,7 @@ added: v0.0.1
6363

6464
[`clearTimeout`][] is described in the [timers][] section.
6565

66-
## console
66+
## `console`
6767
<!-- YAML
6868
added: v0.1.100
6969
-->
@@ -74,11 +74,11 @@ added: v0.1.100
7474

7575
Used to print to stdout and stderr. See the [`console`][] section.
7676

77-
## exports
77+
## `exports`
7878

7979
This variable may appear to be global but is not. See [`exports`][].
8080

81-
## global
81+
## `global`
8282
<!-- YAML
8383
added: v0.1.27
8484
-->
@@ -92,11 +92,11 @@ within the browser `var something` will define a new global variable. In
9292
Node.js this is different. The top-level scope is not the global scope;
9393
`var something` inside a Node.js module will be local to that module.
9494

95-
## module
95+
## `module`
9696

9797
This variable may appear to be global but is not. See [`module`][].
9898

99-
## process
99+
## `process`
100100
<!-- YAML
101101
added: v0.1.7
102102
-->
@@ -107,7 +107,7 @@ added: v0.1.7
107107

108108
The process object. See the [`process` object][] section.
109109

110-
## queueMicrotask(callback)
110+
## `queueMicrotask(callback)`
111111
<!-- YAML
112112
added: v11.0.0
113113
-->
@@ -146,11 +146,11 @@ DataHandler.prototype.load = async function load(key) {
146146
};
147147
```
148148

149-
## require()
149+
## `require()`
150150

151151
This variable may appear to be global but is not. See [`require()`][].
152152

153-
## setImmediate(callback\[, ...args\])
153+
## `setImmediate(callback[, ...args])`
154154
<!-- YAML
155155
added: v0.9.1
156156
-->
@@ -159,7 +159,7 @@ added: v0.9.1
159159

160160
[`setImmediate`][] is described in the [timers][] section.
161161

162-
## setInterval(callback, delay\[, ...args\])
162+
## `setInterval(callback, delay[, ...args])`
163163
<!-- YAML
164164
added: v0.0.1
165165
-->
@@ -168,7 +168,7 @@ added: v0.0.1
168168

169169
[`setInterval`][] is described in the [timers][] section.
170170

171-
## setTimeout(callback, delay\[, ...args\])
171+
## `setTimeout(callback, delay[, ...args])`
172172
<!-- YAML
173173
added: v0.0.1
174174
-->
@@ -177,7 +177,7 @@ added: v0.0.1
177177

178178
[`setTimeout`][] is described in the [timers][] section.
179179

180-
## TextDecoder
180+
## `TextDecoder`
181181
<!-- YAML
182182
added: v11.0.0
183183
-->
@@ -186,7 +186,7 @@ added: v11.0.0
186186

187187
The WHATWG `TextDecoder` class. See the [`TextDecoder`][] section.
188188

189-
## TextEncoder
189+
## `TextEncoder`
190190
<!-- YAML
191191
added: v11.0.0
192192
-->
@@ -195,7 +195,7 @@ added: v11.0.0
195195

196196
The WHATWG `TextEncoder` class. See the [`TextEncoder`][] section.
197197

198-
## URL
198+
## `URL`
199199
<!-- YAML
200200
added: v10.0.0
201201
-->
@@ -204,7 +204,7 @@ added: v10.0.0
204204

205205
The WHATWG `URL` class. See the [`URL`][] section.
206206

207-
## URLSearchParams
207+
## `URLSearchParams`
208208
<!-- YAML
209209
added: v10.0.0
210210
-->
@@ -213,7 +213,7 @@ added: v10.0.0
213213

214214
The WHATWG `URLSearchParams` class. See the [`URLSearchParams`][] section.
215215

216-
## WebAssembly
216+
## `WebAssembly`
217217
<!-- YAML
218218
added: v8.0.0
219219
-->

0 commit comments

Comments
 (0)