Hello community,
here is the log from the commit of package perl-Pod-Markdown for
openSUSE:Factory checked in at 2020-11-03 15:16:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Pod-Markdown (Old)
and /work/SRC/openSUSE:Factory/.perl-Pod-Markdown.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Pod-Markdown"
Tue Nov 3 15:16:52 2020 rev:4 rq:845651 version:3.300
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Pod-Markdown/perl-Pod-Markdown.changes
2019-10-12 22:35:13.566931470 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Pod-Markdown.new.3463/perl-Pod-Markdown.changes
2020-11-03 15:17:31.476095411 +0100
@@ -1,0 +2,11 @@
+Sun Nov 1 03:10:08 UTC 2020 - Tina Müller <[email protected]>
+
+- updated to 3.300
+ see /usr/share/doc/packages/perl-Pod-Markdown/Changes
+
+ 3.300 2020-10-31T22:57:42Z
+
+ - Add escape_url option to allow disabling it (defaults to true).
+ Thanks plicease! (gh-19)
+
+-------------------------------------------------------------------
Old:
----
Pod-Markdown-3.200.tar.gz
New:
----
Pod-Markdown-3.300.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Pod-Markdown.spec ++++++
--- /var/tmp/diff_new_pack.tNV1sO/_old 2020-11-03 15:17:32.288096192 +0100
+++ /var/tmp/diff_new_pack.tNV1sO/_new 2020-11-03 15:17:32.288096192 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Pod-Markdown
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
Name: perl-Pod-Markdown
-Version: 3.200
+Version: 3.300
Release: 0
%define cpan_name Pod-Markdown
Summary: Convert POD to Markdown
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
-Url: https://metacpan.org/release/%{cpan_name}
+URL: https://metacpan.org/release/%{cpan_name}
Source0:
https://cpan.metacpan.org/authors/id/R/RW/RWSTAUNER/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
++++++ Pod-Markdown-3.200.tar.gz -> Pod-Markdown-3.300.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Pod-Markdown-3.200/Changes
new/Pod-Markdown-3.300/Changes
--- old/Pod-Markdown-3.200/Changes 2019-10-09 18:36:23.000000000 +0200
+++ new/Pod-Markdown-3.300/Changes 2020-10-31 23:57:58.000000000 +0100
@@ -1,5 +1,10 @@
Revision history for Perl extension Pod-Markdown
+3.300 2020-10-31T22:57:42Z
+
+ - Add escape_url option to allow disabling it (defaults to true).
+ Thanks plicease! (gh-19)
+
3.200 2019-10-09T16:36:15Z
- Allow local_module_url_prefix to be '' [rt-129865].
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Pod-Markdown-3.200/META.json
new/Pod-Markdown-3.300/META.json
--- old/Pod-Markdown-3.200/META.json 2019-10-09 18:36:23.000000000 +0200
+++ new/Pod-Markdown-3.300/META.json 2020-10-31 23:57:59.000000000 +0100
@@ -108,11 +108,11 @@
"provides" : {
"Pod::Markdown" : {
"file" : "lib/Pod/Markdown.pm",
- "version" : "3.200"
+ "version" : "3.300"
},
"Pod::Perldoc::ToMarkdown" : {
"file" : "lib/Pod/Perldoc/ToMarkdown.pm",
- "version" : "3.200"
+ "version" : "3.300"
}
},
"release_status" : "stable",
@@ -128,7 +128,7 @@
"web" : "https://github.com/rwstauner/Pod-Markdown"
}
},
- "version" : "3.200",
+ "version" : "3.300",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.028002"
@@ -516,37 +516,14 @@
"version" : "2.000007"
},
{
- "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes",
- "config" : {
- "Dist::Zilla::Plugin::Test::CPAN::Changes" : {
- "changelog" : "Changes"
- }
- },
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::CPAN::Changes",
- "version" : "0.012"
+ "class" : "Dist::Zilla::Plugin::MojibakeTests",
+ "name" : "@Author::RWSTAUNER/@TestingMania/MojibakeTests",
+ "version" : "0.8"
},
{
- "class" : "Dist::Zilla::Plugin::Test::Compile",
- "config" : {
- "Dist::Zilla::Plugin::Test::Compile" : {
- "bail_out_on_fail" : 0,
- "fail_on_warning" : "author",
- "fake_home" : 1,
- "filename" : "t/00-compile.t",
- "module_finder" : [
- ":InstallModules"
- ],
- "needs_display" : 0,
- "phase" : "test",
- "script_finder" : [
- ":PerlExecFiles"
- ],
- "skips" : [],
- "switch" : []
- }
- },
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::Compile",
- "version" : "2.058"
+ "class" : "Dist::Zilla::Plugin::Test::Version",
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::Version",
+ "version" : "1.09"
},
{
"class" : "Dist::Zilla::Plugin::Test::Perl::Critic",
@@ -554,29 +531,40 @@
"version" : "3.001"
},
{
- "class" : "Dist::Zilla::Plugin::Test::Version",
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::Version",
- "version" : "1.09"
- },
- {
- "class" : "Dist::Zilla::Plugin::MojibakeTests",
- "name" : "@Author::RWSTAUNER/@TestingMania/MojibakeTests",
- "version" : "0.8"
+ "class" : "Dist::Zilla::Plugin::PodSyntaxTests",
+ "name" : "@Author::RWSTAUNER/@TestingMania/PodSyntaxTests",
+ "version" : "6.012"
},
{
- "class" : "Dist::Zilla::Plugin::Test::MinimumVersion",
+ "class" : "Dist::Zilla::Plugin::Test::NoTabs",
"config" : {
- "Dist::Zilla::Plugin::Test::MinimumVersion" : {
- "max_target_perl" : "5.008"
+ "Dist::Zilla::Plugin::Test::NoTabs" : {
+ "filename" : "xt/author/no-tabs.t",
+ "finder" : [
+ ":InstallModules",
+ ":ExecFiles",
+ ":TestFiles"
+ ]
}
},
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::MinimumVersion",
- "version" : "2.000010"
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::NoTabs",
+ "version" : "0.15"
},
{
- "class" : "Dist::Zilla::Plugin::MetaTests",
- "name" : "@Author::RWSTAUNER/@TestingMania/MetaTests",
- "version" : "6.012"
+ "class" : "Dist::Zilla::Plugin::Test::EOL",
+ "config" : {
+ "Dist::Zilla::Plugin::Test::EOL" : {
+ "filename" : "xt/author/eol.t",
+ "finder" : [
+ ":ExecFiles",
+ ":InstallModules",
+ ":TestFiles"
+ ],
+ "trailing_whitespace" : 0
+ }
+ },
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::EOL",
+ "version" : "0.19"
},
{
"class" : "Dist::Zilla::Plugin::Test::CPAN::Meta::JSON",
@@ -584,11 +572,44 @@
"version" : "0.004"
},
{
+ "class" : "Dist::Zilla::Plugin::Test::MinimumVersion",
+ "config" : {
+ "Dist::Zilla::Plugin::Test::MinimumVersion" : {
+ "max_target_perl" : "5.008"
+ }
+ },
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::MinimumVersion",
+ "version" : "2.000010"
+ },
+ {
"class" : "Dist::Zilla::Plugin::Test::DistManifest",
"name" : "@Author::RWSTAUNER/@TestingMania/Test::DistManifest",
"version" : "2.000005"
},
{
+ "class" : "Dist::Zilla::Plugin::Test::Compile",
+ "config" : {
+ "Dist::Zilla::Plugin::Test::Compile" : {
+ "bail_out_on_fail" : 0,
+ "fail_on_warning" : "author",
+ "fake_home" : 1,
+ "filename" : "t/00-compile.t",
+ "module_finder" : [
+ ":InstallModules"
+ ],
+ "needs_display" : 0,
+ "phase" : "test",
+ "script_finder" : [
+ ":PerlExecFiles"
+ ],
+ "skips" : [],
+ "switch" : []
+ }
+ },
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::Compile",
+ "version" : "2.058"
+ },
+ {
"class" : "Dist::Zilla::Plugin::Test::Kwalitee",
"config" : {
"Dist::Zilla::Plugin::Test::Kwalitee" : {
@@ -600,20 +621,9 @@
"version" : "2.12"
},
{
- "class" : "Dist::Zilla::Plugin::Test::EOL",
- "config" : {
- "Dist::Zilla::Plugin::Test::EOL" : {
- "filename" : "xt/author/eol.t",
- "finder" : [
- ":ExecFiles",
- ":InstallModules",
- ":TestFiles"
- ],
- "trailing_whitespace" : 0
- }
- },
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::EOL",
- "version" : "0.19"
+ "class" : "Dist::Zilla::Plugin::PodCoverageTests",
+ "name" : "@Author::RWSTAUNER/@TestingMania/PodCoverageTests",
+ "version" : "6.012"
},
{
"class" : "Dist::Zilla::Plugin::Test::Portability",
@@ -626,29 +636,19 @@
"version" : "2.001000"
},
{
- "class" : "Dist::Zilla::Plugin::PodSyntaxTests",
- "name" : "@Author::RWSTAUNER/@TestingMania/PodSyntaxTests",
- "version" : "6.012"
- },
- {
- "class" : "Dist::Zilla::Plugin::PodCoverageTests",
- "name" : "@Author::RWSTAUNER/@TestingMania/PodCoverageTests",
+ "class" : "Dist::Zilla::Plugin::MetaTests",
+ "name" : "@Author::RWSTAUNER/@TestingMania/MetaTests",
"version" : "6.012"
},
{
- "class" : "Dist::Zilla::Plugin::Test::NoTabs",
+ "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes",
"config" : {
- "Dist::Zilla::Plugin::Test::NoTabs" : {
- "filename" : "xt/author/no-tabs.t",
- "finder" : [
- ":InstallModules",
- ":ExecFiles",
- ":TestFiles"
- ]
+ "Dist::Zilla::Plugin::Test::CPAN::Changes" : {
+ "changelog" : "Changes"
}
},
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::NoTabs",
- "version" : "0.15"
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::CPAN::Changes",
+ "version" : "0.012"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
@@ -739,7 +739,7 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
- "tag" : "v3.200",
+ "tag" : "v3.300",
"tag_format" : "v%V",
"tag_message" : "v%V"
},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Pod-Markdown-3.200/META.yml
new/Pod-Markdown-3.300/META.yml
--- old/Pod-Markdown-3.200/META.yml 2019-10-09 18:36:23.000000000 +0200
+++ new/Pod-Markdown-3.300/META.yml 2020-10-31 23:57:58.000000000 +0100
@@ -49,10 +49,10 @@
provides:
Pod::Markdown:
file: lib/Pod/Markdown.pm
- version: '3.200'
+ version: '3.300'
Pod::Perldoc::ToMarkdown:
file: lib/Pod/Perldoc/ToMarkdown.pm
- version: '3.200'
+ version: '3.300'
recommends:
HTML::Entities: '0'
requires:
@@ -70,7 +70,7 @@
bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Pod-Markdown
homepage: https://github.com/rwstauner/Pod-Markdown
repository: https://github.com/rwstauner/Pod-Markdown.git
-version: '3.200'
+version: '3.300'
x_Dist_Zilla:
perl:
version: '5.028002'
@@ -372,12 +372,59 @@
name: '@Author::RWSTAUNER/@TestingMania/Test::Synopsis'
version: '2.000007'
-
- class: Dist::Zilla::Plugin::Test::CPAN::Changes
+ class: Dist::Zilla::Plugin::MojibakeTests
+ name: '@Author::RWSTAUNER/@TestingMania/MojibakeTests'
+ version: '0.8'
+ -
+ class: Dist::Zilla::Plugin::Test::Version
+ name: '@Author::RWSTAUNER/@TestingMania/Test::Version'
+ version: '1.09'
+ -
+ class: Dist::Zilla::Plugin::Test::Perl::Critic
+ name: '@Author::RWSTAUNER/@TestingMania/Test::Perl::Critic'
+ version: '3.001'
+ -
+ class: Dist::Zilla::Plugin::PodSyntaxTests
+ name: '@Author::RWSTAUNER/@TestingMania/PodSyntaxTests'
+ version: '6.012'
+ -
+ class: Dist::Zilla::Plugin::Test::NoTabs
config:
- Dist::Zilla::Plugin::Test::CPAN::Changes:
- changelog: Changes
- name: '@Author::RWSTAUNER/@TestingMania/Test::CPAN::Changes'
- version: '0.012'
+ Dist::Zilla::Plugin::Test::NoTabs:
+ filename: xt/author/no-tabs.t
+ finder:
+ - ':InstallModules'
+ - ':ExecFiles'
+ - ':TestFiles'
+ name: '@Author::RWSTAUNER/@TestingMania/Test::NoTabs'
+ version: '0.15'
+ -
+ class: Dist::Zilla::Plugin::Test::EOL
+ config:
+ Dist::Zilla::Plugin::Test::EOL:
+ filename: xt/author/eol.t
+ finder:
+ - ':ExecFiles'
+ - ':InstallModules'
+ - ':TestFiles'
+ trailing_whitespace: 0
+ name: '@Author::RWSTAUNER/@TestingMania/Test::EOL'
+ version: '0.19'
+ -
+ class: Dist::Zilla::Plugin::Test::CPAN::Meta::JSON
+ name: '@Author::RWSTAUNER/@TestingMania/Test::CPAN::Meta::JSON'
+ version: '0.004'
+ -
+ class: Dist::Zilla::Plugin::Test::MinimumVersion
+ config:
+ Dist::Zilla::Plugin::Test::MinimumVersion:
+ max_target_perl: '5.008'
+ name: '@Author::RWSTAUNER/@TestingMania/Test::MinimumVersion'
+ version: '2.000010'
+ -
+ class: Dist::Zilla::Plugin::Test::DistManifest
+ name: '@Author::RWSTAUNER/@TestingMania/Test::DistManifest'
+ version: '2.000005'
-
class: Dist::Zilla::Plugin::Test::Compile
config:
@@ -397,37 +444,6 @@
name: '@Author::RWSTAUNER/@TestingMania/Test::Compile'
version: '2.058'
-
- class: Dist::Zilla::Plugin::Test::Perl::Critic
- name: '@Author::RWSTAUNER/@TestingMania/Test::Perl::Critic'
- version: '3.001'
- -
- class: Dist::Zilla::Plugin::Test::Version
- name: '@Author::RWSTAUNER/@TestingMania/Test::Version'
- version: '1.09'
- -
- class: Dist::Zilla::Plugin::MojibakeTests
- name: '@Author::RWSTAUNER/@TestingMania/MojibakeTests'
- version: '0.8'
- -
- class: Dist::Zilla::Plugin::Test::MinimumVersion
- config:
- Dist::Zilla::Plugin::Test::MinimumVersion:
- max_target_perl: '5.008'
- name: '@Author::RWSTAUNER/@TestingMania/Test::MinimumVersion'
- version: '2.000010'
- -
- class: Dist::Zilla::Plugin::MetaTests
- name: '@Author::RWSTAUNER/@TestingMania/MetaTests'
- version: '6.012'
- -
- class: Dist::Zilla::Plugin::Test::CPAN::Meta::JSON
- name: '@Author::RWSTAUNER/@TestingMania/Test::CPAN::Meta::JSON'
- version: '0.004'
- -
- class: Dist::Zilla::Plugin::Test::DistManifest
- name: '@Author::RWSTAUNER/@TestingMania/Test::DistManifest'
- version: '2.000005'
- -
class: Dist::Zilla::Plugin::Test::Kwalitee
config:
Dist::Zilla::Plugin::Test::Kwalitee:
@@ -436,17 +452,9 @@
name: '@Author::RWSTAUNER/@TestingMania/Test::Kwalitee'
version: '2.12'
-
- class: Dist::Zilla::Plugin::Test::EOL
- config:
- Dist::Zilla::Plugin::Test::EOL:
- filename: xt/author/eol.t
- finder:
- - ':ExecFiles'
- - ':InstallModules'
- - ':TestFiles'
- trailing_whitespace: 0
- name: '@Author::RWSTAUNER/@TestingMania/Test::EOL'
- version: '0.19'
+ class: Dist::Zilla::Plugin::PodCoverageTests
+ name: '@Author::RWSTAUNER/@TestingMania/PodCoverageTests'
+ version: '6.012'
-
class: Dist::Zilla::Plugin::Test::Portability
config:
@@ -455,24 +463,16 @@
name: '@Author::RWSTAUNER/@TestingMania/Test::Portability'
version: '2.001000'
-
- class: Dist::Zilla::Plugin::PodSyntaxTests
- name: '@Author::RWSTAUNER/@TestingMania/PodSyntaxTests'
- version: '6.012'
- -
- class: Dist::Zilla::Plugin::PodCoverageTests
- name: '@Author::RWSTAUNER/@TestingMania/PodCoverageTests'
+ class: Dist::Zilla::Plugin::MetaTests
+ name: '@Author::RWSTAUNER/@TestingMania/MetaTests'
version: '6.012'
-
- class: Dist::Zilla::Plugin::Test::NoTabs
+ class: Dist::Zilla::Plugin::Test::CPAN::Changes
config:
- Dist::Zilla::Plugin::Test::NoTabs:
- filename: xt/author/no-tabs.t
- finder:
- - ':InstallModules'
- - ':ExecFiles'
- - ':TestFiles'
- name: '@Author::RWSTAUNER/@TestingMania/Test::NoTabs'
- version: '0.15'
+ Dist::Zilla::Plugin::Test::CPAN::Changes:
+ changelog: Changes
+ name: '@Author::RWSTAUNER/@TestingMania/Test::CPAN::Changes'
+ version: '0.012'
-
class: Dist::Zilla::Plugin::Manifest
name: '@Author::RWSTAUNER/Manifest'
@@ -543,7 +543,7 @@
branch: ~
changelog: Changes
signed: 0
- tag: v3.200
+ tag: v3.300
tag_format: v%V
tag_message: v%V
Dist::Zilla::Role::Git::Repo:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Pod-Markdown-3.200/Makefile.PL
new/Pod-Markdown-3.300/Makefile.PL
--- old/Pod-Markdown-3.200/Makefile.PL 2019-10-09 18:36:23.000000000 +0200
+++ new/Pod-Markdown-3.300/Makefile.PL 2020-10-31 23:57:59.000000000 +0100
@@ -52,7 +52,7 @@
"lib" => 0,
"utf8" => 0
},
- "VERSION" => "3.200",
+ "VERSION" => "3.300",
"test" => {
"TESTS" => "t/*.t"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Pod-Markdown-3.200/README
new/Pod-Markdown-3.300/README
--- old/Pod-Markdown-3.200/README 2019-10-09 18:36:23.000000000 +0200
+++ new/Pod-Markdown-3.300/README 2020-10-31 23:57:58.000000000 +0100
@@ -1,5 +1,5 @@
This archive contains the distribution Pod-Markdown,
-version 3.200:
+version 3.300:
Convert POD to Markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Pod-Markdown-3.200/bin/pod2markdown
new/Pod-Markdown-3.300/bin/pod2markdown
--- old/Pod-Markdown-3.200/bin/pod2markdown 2019-10-09 18:36:23.000000000
+0200
+++ new/Pod-Markdown-3.300/bin/pod2markdown 2020-10-31 23:57:59.000000000
+0100
@@ -79,7 +79,7 @@
=head1 VERSION
-version 3.200
+version 3.300
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Pod-Markdown-3.200/lib/Pod/Markdown.pm
new/Pod-Markdown-3.300/lib/Pod/Markdown.pm
--- old/Pod-Markdown-3.200/lib/Pod/Markdown.pm 2019-10-09 18:36:23.000000000
+0200
+++ new/Pod-Markdown-3.300/lib/Pod/Markdown.pm 2020-10-31 23:57:59.000000000
+0100
@@ -12,11 +12,11 @@
use warnings;
package Pod::Markdown;
-# git description: v3.101-3-g70682ef
+# git description: v3.200-4-gd31d626
our $AUTHORITY = 'cpan:RWSTAUNER';
# ABSTRACT: Convert POD to Markdown
-$Pod::Markdown::VERSION = '3.200';
+$Pod::Markdown::VERSION = '3.300';
use Pod::Simple 3.27 (); # detected_encoding and keep_encoding bug fix
use parent qw(Pod::Simple::Methody);
use Encode ();
@@ -105,6 +105,7 @@
perldoc_fragment_format
markdown_fragment_format
include_meta_tags
+ escape_url
);
@@ -116,6 +117,7 @@
$self->preserve_whitespace(1);
$self->nbsp_for_S(1);
$self->accept_targets(qw( markdown html ));
+ $self->escape_url(1);
# Default to the global, but allow it to be overwritten in args.
$self->local_module_re($LOCAL_MODULE_RE);
@@ -149,6 +151,10 @@
# TODO: call from the setters.
$self->_prepare_fragment_formats;
+ if(defined $self->local_module_url_prefix && $self->local_module_url_prefix
eq '' && !$self->escape_url) {
+ warn("turning escape_url with an empty local_module_url_prefix is not
recommended as relative URLs could be confused for IPv6 addresses");
+ }
+
return $self;
}
@@ -1064,7 +1070,7 @@
# If the link is to another module (external link).
if ($name) {
- $url = $url_prefix . URI::Escape::uri_escape($name);
+ $url = $url_prefix . ($self->escape_url ? URI::Escape::uri_escape($name) :
$name);
}
# See https://rt.cpan.org/Ticket/Display.html?id=57776
@@ -1202,7 +1208,7 @@
=head1 VERSION
-version 3.200
+version 3.300
=for test_synopsis my ($pod_string);
@@ -1381,6 +1387,14 @@
Specifies whether or not to print author/title meta tags at the top of the
document.
Default is false.
+=item *
+
+C<escape_url>
+
+Specifies whether or not to escape URLs. Default is true. It is not
recommended
+to turn this off with an empty local_module_url_prefix, as the resulting local
+module URLs can be confused with IPv6 addresses by web browsers.
+
=back
=head2 html_encode_chars
@@ -1470,6 +1484,11 @@
Returns the boolean value indicating
whether or not meta tags will be printed.
+=head2 escape_url
+
+Returns the boolean value indicating
+whether or not URLs should be escaped.
+
=head2 format_man_url
Used internally to create a url (using L</man_url_prefix>)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Pod-Markdown-3.200/lib/Pod/Perldoc/ToMarkdown.pm
new/Pod-Markdown-3.300/lib/Pod/Perldoc/ToMarkdown.pm
--- old/Pod-Markdown-3.200/lib/Pod/Perldoc/ToMarkdown.pm 2019-10-09
18:36:23.000000000 +0200
+++ new/Pod-Markdown-3.300/lib/Pod/Perldoc/ToMarkdown.pm 2020-10-31
23:57:59.000000000 +0100
@@ -11,7 +11,7 @@
package Pod::Perldoc::ToMarkdown;
our $AUTHORITY = 'cpan:RWSTAUNER';
-$Pod::Perldoc::ToMarkdown::VERSION = '3.200';
+$Pod::Perldoc::ToMarkdown::VERSION = '3.300';
# ABSTRACT: Enable `perldoc -o Markdown`
use parent qw(Pod::Markdown);
@@ -60,7 +60,7 @@
=head1 VERSION
-version 3.200
+version 3.300
=for test_synopsis 1;
__END__
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Pod-Markdown-3.200/t/links.t
new/Pod-Markdown-3.300/t/links.t
--- old/Pod-Markdown-3.200/t/links.t 2019-10-09 18:36:23.000000000 +0200
+++ new/Pod-Markdown-3.300/t/links.t 2020-10-31 23:57:58.000000000 +0100
@@ -139,6 +139,10 @@
$p = {local_module_url_prefix => ''};
test_link($p, q<Local::Foo::Bar>,
qq^[Local::Foo::Bar](Local%3A%3AFoo%3A%3ABar)^,
'local module with empty prefix');
+
+ $p = {local_module_url_prefix => 'http://foo/', escape_url => 0};
+ test_link($p, q<Local::Foo::Bar>,
qq^[Local::Foo::Bar](http://foo/Local::Foo::Bar)^,
+ 'local module with empty prefix');
}
# Most of these examples were internal links
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Pod-Markdown-3.200/t/new.t
new/Pod-Markdown-3.300/t/new.t
--- old/Pod-Markdown-3.200/t/new.t 2019-10-09 18:36:23.000000000 +0200
+++ new/Pod-Markdown-3.300/t/new.t 2020-10-31 23:57:58.000000000 +0100
@@ -67,4 +67,8 @@
like warning { Pod::Markdown->new(encoding => 'oops'); },
qr/encoding/, 'method that is not a rw attribute throws a warning';
+like warning { Pod::Markdown->new(local_module_url_prefix => '', escape_url =>
0) },
+ qr/turning escape_url with an empty local_module_url_prefix is not
recommended as relative URLs could be confused for IPv6 addresses/,
+ 'use empty url prefix and do not escape url';
+
done_testing;