diff options
author | Nick Schonning <nschonni@gmail.com> | 2019-10-09 18:49:08 -0400 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-10 22:15:58 -0700 |
commit | 81bc7b3ba5a37a5ad4de0f8798eb42e631d55617 (patch) | |
tree | 151d163358f029f8f686b595db2c565ddcff1070 /doc/api/console.md | |
parent | a1e47d7603b1d0bf54c8aad027298e964b8c8af4 (diff) | |
download | android-node-v8-81bc7b3ba5a37a5ad4de0f8798eb42e631d55617.tar.gz android-node-v8-81bc7b3ba5a37a5ad4de0f8798eb42e631d55617.tar.bz2 android-node-v8-81bc7b3ba5a37a5ad4de0f8798eb42e631d55617.zip |
doc: escape brackets not used as markdown reference links
These can turn into links if reference links are added to the document
PR-URL: https://github.com/nodejs/node/pull/29809
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api/console.md')
-rw-r--r-- | doc/api/console.md | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/doc/api/console.md b/doc/api/console.md index b9a5ea3035..5700e91411 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -77,7 +77,7 @@ const { Console } = require('console'); const { Console } = console; ``` -### new Console(stdout[, stderr][, ignoreErrors]) +### new Console(stdout\[, stderr\]\[, ignoreErrors\]) ### new Console(options) <!-- YAML changes: @@ -129,7 +129,7 @@ The global `console` is a special `Console` whose output is sent to new Console({ stdout: process.stdout, stderr: process.stderr }); ``` -### console.assert(value[, ...message]) +### console.assert(value\[, ...message\]) <!-- YAML added: v0.1.101 changes: @@ -171,7 +171,7 @@ operates similarly to the `clear` shell command. On Windows, `console.clear()` will clear only the output in the current terminal viewport for the Node.js binary. -### console.count([label]) +### console.count(\[label\]) <!-- YAML added: v8.3.0 --> @@ -204,7 +204,7 @@ undefined > ``` -### console.countReset([label]) +### console.countReset(\[label\]) <!-- YAML added: v8.3.0 --> @@ -226,7 +226,7 @@ undefined > ``` -### console.debug(data[, ...args]) +### console.debug(data\[, ...args\]) <!-- YAML added: v8.0.0 changes: @@ -240,7 +240,7 @@ changes: The `console.debug()` function is an alias for [`console.log()`][]. -### console.dir(obj[, options]) +### console.dir(obj\[, options\]) <!-- YAML added: v0.1.101 --> @@ -273,7 +273,7 @@ changes: This method calls `console.log()` passing it the arguments received. This method does not produce any XML formatting. -### console.error([data][, ...args]) +### console.error(\[data\]\[, ...args\]) <!-- YAML added: v0.1.100 --> @@ -298,7 +298,7 @@ If formatting elements (e.g. `%d`) are not found in the first string then [`util.inspect()`][] is called on each argument and the resulting string values are concatenated. See [`util.format()`][] for more information. -### console.group([...label]) +### console.group(\[...label\]) <!-- YAML added: v8.5.0 --> @@ -324,7 +324,7 @@ added: v8.5.0 Decreases indentation of subsequent lines by two spaces. -### console.info([data][, ...args]) +### console.info(\[data\]\[, ...args\]) <!-- YAML added: v0.1.100 --> @@ -334,7 +334,7 @@ added: v0.1.100 The `console.info()` function is an alias for [`console.log()`][]. -### console.log([data][, ...args]) +### console.log(\[data\]\[, ...args\]) <!-- YAML added: v0.1.100 --> @@ -357,7 +357,7 @@ console.log('count:', count); See [`util.format()`][] for more information. -### console.table(tabularData[, properties]) +### console.table(tabularData\[, properties\]) <!-- YAML added: v10.0.0 --> @@ -394,7 +394,7 @@ console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']); // └─────────┴─────┘ ``` -### console.time([label]) +### console.time(\[label\]) <!-- YAML added: v0.1.104 --> @@ -406,7 +406,7 @@ are identified by a unique `label`. Use the same `label` when calling [`console.timeEnd()`][] to stop the timer and output the elapsed time in milliseconds to `stdout`. Timer durations are accurate to the sub-millisecond. -### console.timeEnd([label]) +### console.timeEnd(\[label\]) <!-- YAML added: v0.1.104 changes: @@ -428,7 +428,7 @@ console.timeEnd('100-elements'); // prints 100-elements: 225.438ms ``` -### console.timeLog([label][, ...data]) +### console.timeLog(\[label\]\[, ...data\]) <!-- YAML added: v10.7.0 --> @@ -448,7 +448,7 @@ doExpensiveProcess2(value); console.timeEnd('process'); ``` -### console.trace([message][, ...args]) +### console.trace(\[message\]\[, ...args\]) <!-- YAML added: v0.1.104 --> @@ -475,7 +475,7 @@ console.trace('Show me'); // at REPLServer.Interface._ttyWrite (readline.js:826:14) ``` -### console.warn([data][, ...args]) +### console.warn(\[data\]\[, ...args\]) <!-- YAML added: v0.1.100 --> @@ -490,7 +490,7 @@ The following methods are exposed by the V8 engine in the general API but do not display anything unless used in conjunction with the [inspector][] (`--inspect` flag). -### console.markTimeline([label]) +### console.markTimeline(\[label\]) <!-- YAML added: v8.0.0 --> @@ -501,7 +501,7 @@ This method does not display anything unless used in the inspector. The `console.markTimeline()` method is the deprecated form of [`console.timeStamp()`][]. -### console.profile([label]) +### console.profile(\[label\]) <!-- YAML added: v8.0.0 --> @@ -520,7 +520,7 @@ console.profileEnd('MyLabel'); // Adds the profile 'MyLabel' to the Profiles panel of the inspector. ``` -### console.profileEnd([label]) +### console.profileEnd(\[label\]) <!-- YAML added: v8.0.0 --> @@ -535,7 +535,7 @@ the report to the **Profiles** panel of the inspector. See If this method is called without a label, the most recently started profile is stopped. -### console.timeStamp([label]) +### console.timeStamp(\[label\]) <!-- YAML added: v8.0.0 --> @@ -546,7 +546,7 @@ This method does not display anything unless used in the inspector. The `console.timeStamp()` method adds an event with the label `'label'` to the **Timeline** panel of the inspector. -### console.timeline([label]) +### console.timeline(\[label\]) <!-- YAML added: v8.0.0 --> @@ -556,7 +556,7 @@ added: v8.0.0 This method does not display anything unless used in the inspector. The `console.timeline()` method is the deprecated form of [`console.time()`][]. -### console.timelineEnd([label]) +### console.timelineEnd(\[label\]) <!-- YAML added: v8.0.0 --> |