NAME

Text::AutoLink - Perl extension for making hyperlinks in text automatically.

SYNOPSIS

use Text::Hatena::AutoLink;

my $parser = Text::Hatena::AutoLink->new;
my $html = $parser->parse($text);

DESCRIPTION

Text::Hatena::AutoLink makes many hyperlinks in text automatically. Urls will be changed into hyperlinks.

Incompatibility at version 0.20

All codes were rewritten at version 0.20 and some functions were removed. API for parsing text were changed too. Please be careful to upgrade your Text::Hatena::AutoLink to version 0.20+.

METHODS

Here are common methods of Text::Hatena::AutoLink.

parse
my $html = $parser->parse($text);

parses text and make links. It returns html.

Text::Hatena::AutoLink Syntax

Text::Hatena::AutoLink supports some simple syntaxes.

http://www.hatena.ne.jp/
[http://www.hatena.ne.jp/:title=Hatena]
[http://www.hatena.ne.jp/images/top/h1.gif:image]
[http://www.hatena.ne.jp/images/top/h1.gif:image:w300]
mailto:someone@example.com

These lines all become into hyperlinks.

[]http://dont.link.to.me/[]

You can avoid being hyperlinked with 2 pair brackets like the above line.

SEE ALSO

Text::Hatena

AUTHOR

Junya Kondo, <jkondo@hatena.ne.jp>

COPYRIGHT AND LICENSE

Copyright (C) Hatena Inc. All Rights Reserved.

This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.