Skip to content

Commit 38e09f8

Browse files
TrottBridgeAR
authored andcommitted
doc,repl: use code markup/markdown in headers
PR-URL: #31086 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 128a69d commit 38e09f8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/api/repl.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ function myWriter(output) {
347347
}
348348
```
349349

350-
## Class: REPLServer
350+
## Class: `REPLServer`
351351
<!-- YAML
352352
added: v0.1.91
353353
-->
@@ -357,7 +357,7 @@ added: v0.1.91
357357
Instances of `repl.REPLServer` are created using the `repl.start()` method and
358358
*should not* be created directly using the JavaScript `new` keyword.
359359

360-
### Event: 'exit'
360+
### Event: `'exit'`
361361
<!-- YAML
362362
added: v0.7.7
363363
-->
@@ -374,7 +374,7 @@ replServer.on('exit', () => {
374374
});
375375
```
376376

377-
### Event: 'reset'
377+
### Event: `'reset'`
378378
<!-- YAML
379379
added: v0.11.0
380380
-->
@@ -419,7 +419,7 @@ Clearing context...
419419
>
420420
```
421421

422-
### replServer.defineCommand(keyword, cmd)
422+
### `replServer.defineCommand(keyword, cmd)`
423423
<!-- YAML
424424
added: v0.3.0
425425
-->
@@ -465,7 +465,7 @@ Hello, Node.js User!
465465
Goodbye!
466466
```
467467

468-
### replServer.displayPrompt(\[preserveCursor\])
468+
### `replServer.displayPrompt([preserveCursor])`
469469
<!-- YAML
470470
added: v0.1.91
471471
-->
@@ -485,7 +485,7 @@ The `replServer.displayPrompt` method is primarily intended to be called from
485485
within the action function for commands registered using the
486486
`replServer.defineCommand()` method.
487487

488-
### replServer.clearBufferedCommand()
488+
### `replServer.clearBufferedCommand()`
489489
<!-- YAML
490490
added: v9.0.0
491491
-->
@@ -495,7 +495,7 @@ buffered but not yet executed. This method is primarily intended to be
495495
called from within the action function for commands registered using the
496496
`replServer.defineCommand()` method.
497497

498-
### replServer.parseREPLKeyword(keyword\[, rest\])
498+
### `replServer.parseREPLKeyword(keyword[, rest])`
499499
<!-- YAML
500500
added: v0.8.9
501501
deprecated: v9.0.0
@@ -510,7 +510,7 @@ deprecated: v9.0.0
510510
An internal method used to parse and execute `REPLServer` keywords.
511511
Returns `true` if `keyword` is a valid keyword, otherwise `false`.
512512

513-
### replServer.setupHistory(historyPath, callback)
513+
### `replServer.setupHistory(historyPath, callback)`
514514
<!-- YAML
515515
added: v11.10.0
516516
-->
@@ -526,7 +526,7 @@ by default. However, this is not the case when creating a REPL
526526
programmatically. Use this method to initialize a history log file when working
527527
with REPL instances programmatically.
528528

529-
## repl.start(\[options\])
529+
## `repl.start([options])`
530530
<!-- YAML
531531
added: v0.1.91
532532
changes:

0 commit comments

Comments
 (0)