From c417de409dd5aae0448839199b40d7a1cc7cf2a9 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 27 Feb 2012 11:09:35 -0800 Subject: [PATCH] doc refactor: url --- doc/api/url.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/url.markdown b/doc/api/url.markdown index a4dbec9..cf3d70b 100644 --- a/doc/api/url.markdown +++ b/doc/api/url.markdown @@ -1,4 +1,4 @@ -## URL +# URL This module has utilities for URL resolution and parsing. Call `require('url')` to use it. @@ -45,7 +45,7 @@ string will not be in the parsed object. Examples are shown for the URL The following methods are provided by the URL module: -### url.parse(urlStr, [parseQueryString], [slashesDenoteHost]) +## url.parse(urlStr, [parseQueryString], [slashesDenoteHost]) Take a URL string, and return an object. @@ -57,7 +57,7 @@ Pass `true` as the third argument to treat `//foo/bar` as `{ host: 'foo', pathname: '/bar' }` rather than `{ pathname: '//foo/bar' }`. Defaults to `false`. -### url.format(urlObj) +## url.format(urlObj) Take a parsed URL object, and return a formatted URL string. @@ -75,6 +75,6 @@ Take a parsed URL object, and return a formatted URL string. * `search` is treated the same with or without the leading `?` (question mark) * `hash` is treated the same with or without the leading `#` (pound sign, anchor) -### url.resolve(from, to) +## url.resolve(from, to) Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag. -- 2.7.4