diff --git a/doc/api/repl.md b/doc/api/repl.md index 967336710ce3a1..670705dbf2aa75 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -327,7 +327,7 @@ function myWriter(output) { } ``` -## Class: REPLServer +## Class: `REPLServer` @@ -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'` @@ -354,7 +354,7 @@ replServer.on('exit', () => { }); ``` -### Event: 'reset' +### Event: `'reset'` @@ -399,7 +399,7 @@ Clearing context... > ``` -### replServer.defineCommand(keyword, cmd) +### `replServer.defineCommand(keyword, cmd)` @@ -445,7 +445,7 @@ Hello, Node.js User! Goodbye! ``` -### replServer.displayPrompt(\[preserveCursor\]) +### `replServer.displayPrompt([preserveCursor])` @@ -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()` @@ -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])` @@ -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])`