Subject: | Automatic absolute links not recognized, e.g., inside brackets |
Date: | Sun, 29 Nov 2015 23:46:47 -0500 |
To: | bug-Text-WikiFormat [...] rt.cpan.org |
From: | Ivan Adzhubey <iadzhubey [...] rics.bwh.harvard.edu> |
Hi,
From the Changelog:
0.80 Mon 23 Jul 16:23:14 BST 2012
- Automatic absolute links now work when at the very start of some text
Fixes bug #27850.
Unfortunately, this does not seem to be working here with version 0.81:
Example: absolute link in the Wiki text of the form:
Some text (http://example.com) and more text.
Is not recognized.
And the following text excerpt:
(as in http://example.com)
Is converted into a malformed link:
(as in <a href="http://example.com/)">http://example.com/)</a>
I am using:
$ perl -MText::WikiFormat -le 'print $Text::WikiFormat::VERSION'
0.81
Code:
#!/usr/bin/perl
use Text::WikiFormat;
<...>
my $html = Text::WikiFormat::format($input,
{ extended_link_delimiters => ['[[', ']]'] },
{ implicit_links => 0, absolute_links => 1, extended => 1 }
);
print $html;
Thanks,
Ivan
--
Ivan Adzhubey, Ph.D.
Instructor
Division of Genetics, Dept of Medicine
Brigham & Women's Hospital
Harvard Medical School
New Research Building, Room 0464C
77 Avenue Louis Pasteur
Boston, MA 02115
tel.: (617) 525-4728
fax: (617) 525-4705
web: http://genetics.bwh.harvard.edu/wiki/sunyaevlab/