Skip to content

Commit

Permalink
doc,repl: use code markup/markdown in headers
Browse files Browse the repository at this point in the history
PR-URL: #31086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Trott authored and BridgeAR committed Jan 3, 2020
1 parent 128a69d commit 38e09f8
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 @@ -347,7 +347,7 @@ function myWriter(output) {
}
```

## Class: REPLServer
## Class: `REPLServer`
<!-- YAML
added: v0.1.91
-->
Expand All @@ -357,7 +357,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 @@ -374,7 +374,7 @@ replServer.on('exit', () => {
});
```

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

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

### replServer.displayPrompt(\[preserveCursor\])
### `replServer.displayPrompt([preserveCursor])`
<!-- YAML
added: v0.1.91
-->
Expand All @@ -485,7 +485,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 @@ -495,7 +495,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 @@ -510,7 +510,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 @@ -526,7 +526,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 38e09f8

Please sign in to comment.