# markdown-plain-link-replacer
Script to replace a plain text link (ie http://whatever) with the title at the link's webpage in markdown.


## Installation

Installation is easiest through npm:

`npm install markdown-plain-link-replacer --save`


## Usage

**markdown-plain-link-replacer** can be included as reference.

```
var linkReplacer = require('./index.js');

linkReplacer.replacePlainLinks(input, function(newMarkdown){
	console.log(newMarkdown);
});
```

## CLI

```
$ npm install --global markdown-plain-link-replacer
```

```
$ markdown-plain-link-replacer --help

  Usage
    $ markdown-plain-link-replacer "<markdown>"

  Example
    $ markdown-plain-link-replacer "  http://starwars.wikia.com/wiki/Bespin  "'
```


## License

MIT © [Mark Rogers](http://www.markdavidrogers.com)

# markdown-plain-link-replacer
Script to replace a plain text link (ie http://whatever) with the title at the link's webpage in markdown.


## Installation

Installation is easiest through npm:

`npm install markdown-plain-link-replacer --save`


## Usage

**markdown-plain-link-replacer** can be included as reference.

```
var input = "  http://starwars.wikia.com/wiki/Bespin  "
  , linkReplacer = require('./index.js')
  ;

linkReplacer.replacePlainLinks(input, function(newMarkdown){
	console.log(newMarkdown);
});
```

## CLI

```
$ npm install --global markdown-plain-link-replacer
```

```
$ markdown-plain-link-replacer --help

  Usage
    $ markdown-plain-link-replacer "<markdown>"

  Example
    $ markdown-plain-link-replacer "  http://starwars.wikia.com/wiki/Bespin  "
```


## License

MIT © [Mark Rogers](http://www.markdavidrogers.com)

Improve and fix readme doc.
Improve and fix readme doc.
