parse-hyperlinks 0.9.3

A Nom parser library for hyperlinks with markup.
Documentation
# Parse hyperlinks

A parser library written with [Nom](https://crates.io/crates/nom) to recognize
hyperlinks in Markdown or reStructuredText formatted text input.

[![Cargo](https://img.shields.io/crates/v/parse-hyperlinks.svg)](
https://crates.io/crates/parse-hyperlinks)
[![Documentation](https://docs.rs/parse-hyperlinks/badge.svg)](
https://docs.rs/parse-hyperlinks)
[![License](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](
https://github.com/getreu/parse-hyperlinks)

The library implements the
[CommonMark Specification 0.29](https://spec.commonmark.org/0.29/) and the
[reStructuredText Markup Specification](https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html)
(revision 8571, date 2020-10-28).

To illustrate the usage and the API of the library, [parse-hyperlinks](https://crates.io/crates/parse-hyperlinks)
comes also with a simple command line application.

Installation:

```bash
cargo install parse-hyperlinks
```

Usage example:

```bash
$ cat input.txt
abc [my blog](https://getreu.net "blog title")abc
   [my blog]: https://getreu.net "blog title"
abc`my blog <https://getreu.net>`_abc
  .. _my blog: https://get
     reu.net
$
$ ./parse-hyperlinks <input.txt >ouput.html
$
$ cat ouput.html
<a href="https://getreu.net" title="blog title">my blog</a><br/>
<a href="https://getreu.net" title="blog title">my blog</a><br/>
<a href="https://getreu.net" title="">my blog</a><br/>
<a href="https://getreu.net" title="">my blog</a><br/>
$
```