Skip to content

Commit

Permalink
doc,repl: use code markup/markdown in headers
Browse files Browse the repository at this point in the history
Backport-PR-URL: #31108
PR-URL: #31086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Trott authored and BethGriggs committed Feb 6, 2020
1 parent 4dc930c commit 55a269c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions doc/api/repl.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function myWriter(output) {
}
```

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

### Event: 'exit'
### Event: `'exit'`
<!-- YAML
added: v0.7.7
-->
Expand All @@ -354,7 +354,7 @@ replServer.on('exit', () => {
});
```

### Event: 'reset'
### Event: `'reset'`
<!-- YAML
added: v0.11.0
-->
Expand Down Expand Up @@ -399,7 +399,7 @@ Clearing context...
>
```

### replServer.defineCommand(keyword, cmd)
### `replServer.defineCommand(keyword, cmd)`
<!-- YAML
added: v0.3.0
-->
Expand Down Expand Up @@ -445,7 +445,7 @@ Hello, Node.js User!
Goodbye!
```

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

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

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

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

## repl.start(\[options\])
## `repl.start([options])`
<!-- YAML
added: v0.1.91
changes:
Expand Down

0 comments on commit 55a269c

Please sign in to comment.