Skip to content

Commit c417de4

Browse files
committed
doc refactor: url
1 parent c2f6405 commit c417de4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/url.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## URL
1+
# URL
22

33
This module has utilities for URL resolution and parsing.
44
Call `require('url')` to use it.
@@ -45,7 +45,7 @@ string will not be in the parsed object. Examples are shown for the URL
4545

4646
The following methods are provided by the URL module:
4747

48-
### url.parse(urlStr, [parseQueryString], [slashesDenoteHost])
48+
## url.parse(urlStr, [parseQueryString], [slashesDenoteHost])
4949

5050
Take a URL string, and return an object.
5151

@@ -57,7 +57,7 @@ Pass `true` as the third argument to treat `//foo/bar` as
5757
`{ host: 'foo', pathname: '/bar' }` rather than
5858
`{ pathname: '//foo/bar' }`. Defaults to `false`.
5959

60-
### url.format(urlObj)
60+
## url.format(urlObj)
6161

6262
Take a parsed URL object, and return a formatted URL string.
6363

@@ -75,6 +75,6 @@ Take a parsed URL object, and return a formatted URL string.
7575
* `search` is treated the same with or without the leading `?` (question mark)
7676
* `hash` is treated the same with or without the leading `#` (pound sign, anchor)
7777

78-
### url.resolve(from, to)
78+
## url.resolve(from, to)
7979

8080
Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag.

0 commit comments

Comments
 (0)