Skip to content

Commit ce4545b

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

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
@@ -327,7 +327,7 @@ function myWriter(output) {
327327
}
328328
```
329329

330-
## Class: REPLServer
330+
## Class: `REPLServer`
331331
<!-- YAML
332332
added: v0.1.91
333333
-->
@@ -337,7 +337,7 @@ added: v0.1.91
337337
Instances of `repl.REPLServer` are created using the `repl.start()` method and
338338
*should not* be created directly using the JavaScript `new` keyword.
339339

340-
### Event: 'exit'
340+
### Event: `'exit'`
341341
<!-- YAML
342342
added: v0.7.7
343343
-->
@@ -354,7 +354,7 @@ replServer.on('exit', () => {
354354
});
355355
```
356356

357-
### Event: 'reset'
357+
### Event: `'reset'`
358358
<!-- YAML
359359
added: v0.11.0
360360
-->
@@ -399,7 +399,7 @@ Clearing context...
399399
>
400400
```
401401

402-
### replServer.defineCommand(keyword, cmd)
402+
### `replServer.defineCommand(keyword, cmd)`
403403
<!-- YAML
404404
added: v0.3.0
405405
-->
@@ -445,7 +445,7 @@ Hello, Node.js User!
445445
Goodbye!
446446
```
447447

448-
### replServer.displayPrompt(\[preserveCursor\])
448+
### `replServer.displayPrompt([preserveCursor])`
449449
<!-- YAML
450450
added: v0.1.91
451451
-->
@@ -465,7 +465,7 @@ The `replServer.displayPrompt` method is primarily intended to be called from
465465
within the action function for commands registered using the
466466
`replServer.defineCommand()` method.
467467

468-
### replServer.clearBufferedCommand()
468+
### `replServer.clearBufferedCommand()`
469469
<!-- YAML
470470
added: v9.0.0
471471
-->
@@ -475,7 +475,7 @@ buffered but not yet executed. This method is primarily intended to be
475475
called from within the action function for commands registered using the
476476
`replServer.defineCommand()` method.
477477

478-
### replServer.parseREPLKeyword(keyword\[, rest\])
478+
### `replServer.parseREPLKeyword(keyword[, rest])`
479479
<!-- YAML
480480
added: v0.8.9
481481
deprecated: v9.0.0
@@ -490,7 +490,7 @@ deprecated: v9.0.0
490490
An internal method used to parse and execute `REPLServer` keywords.
491491
Returns `true` if `keyword` is a valid keyword, otherwise `false`.
492492

493-
### replServer.setupHistory(historyPath, callback)
493+
### `replServer.setupHistory(historyPath, callback)`
494494
<!-- YAML
495495
added: v11.10.0
496496
-->
@@ -506,7 +506,7 @@ by default. However, this is not the case when creating a REPL
506506
programmatically. Use this method to initialize a history log file when working
507507
with REPL instances programmatically.
508508

509-
## repl.start(\[options\])
509+
## `repl.start([options])`
510510
<!-- YAML
511511
added: v0.1.91
512512
changes:

0 commit comments

Comments
 (0)