Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2019-10-10 01:49:08 +0300
committerRich Trott <rtrott@gmail.com>2019-10-11 08:15:58 +0300
commit81bc7b3ba5a37a5ad4de0f8798eb42e631d55617 (patch)
tree151d163358f029f8f686b595db2c565ddcff1070 /doc/api/url.md
parenta1e47d7603b1d0bf54c8aad027298e964b8c8af4 (diff)
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/url.md')
-rw-r--r--doc/api/url.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/url.md b/doc/api/url.md
index 3583d310749..d50061abe11 100644
--- a/doc/api/url.md
+++ b/doc/api/url.md
@@ -89,7 +89,7 @@ using the `delete` keyword on any properties of `URL` objects (e.g. `delete
myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still
return `true`.
-#### Constructor: new URL(input[, base])
+#### Constructor: new URL(input\[, base\])
* `input` {string} The absolute or relative input URL to parse. If `input`
is relative, then `base` is required. If `input` is absolute, the `base`
@@ -706,7 +706,7 @@ is the `name`, the second item of the `Array` is the `value`.
Alias for [`urlSearchParams[@@iterator]()`][`urlSearchParams@@iterator()`].
-#### urlSearchParams.forEach(fn[, thisArg])
+#### urlSearchParams.forEach(fn\[, thisArg\])
* `fn` {Function} Invoked for each name-value pair in the query
* `thisArg` {Object} To be used as `this` value for when `fn` is called
@@ -915,7 +915,7 @@ new URL('file:///hello world').pathname; // Incorrect: /hello%20world
fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX)
```
-### url.format(URL[, options])
+### url.format(URL\[, options\])
<!-- YAML
added: v7.6.0
-->
@@ -1181,7 +1181,7 @@ The formatting process operates as follows:
string, an [`Error`][] is thrown.
* `result` is returned.
-### url.parse(urlString[, parseQueryString[, slashesDenoteHost]])
+### url.parse(urlString\[, parseQueryString\[, slashesDenoteHost\]\])
<!-- YAML
added: v0.1.25
changes: