From 38e09f8d171fb5101e8183e7073651447d08fe84 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 24 Dec 2019 15:00:52 -0800 Subject: doc,repl: use code markup/markdown in headers PR-URL: https://github.com/nodejs/node/pull/31086 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater --- doc/api/repl.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index 625f3c22d24..37ca988cb80 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -347,7 +347,7 @@ function myWriter(output) { } ``` -## Class: REPLServer +## Class: `REPLServer` @@ -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'` @@ -374,7 +374,7 @@ replServer.on('exit', () => { }); ``` -### Event: 'reset' +### Event: `'reset'` @@ -419,7 +419,7 @@ Clearing context... > ``` -### replServer.defineCommand(keyword, cmd) +### `replServer.defineCommand(keyword, cmd)` @@ -465,7 +465,7 @@ Hello, Node.js User! Goodbye! ``` -### replServer.displayPrompt(\[preserveCursor\]) +### `replServer.displayPrompt([preserveCursor])` @@ -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()` @@ -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])` @@ -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])`