test for Text::Markdown::[Mm]arkdown and use the available one
Markdown is such a splintered mess.. The current debian package provides only Text::Markdown::Markdown, while all versions of Text::Markdown support Text::Markdown::markdown, and old versions also support the capitalised version, while new ones don't. It's getting to the point where `grep /markdown/i %symbol_table` is the only sane way to figure out what function to call..master
parent
0217eebf49
commit
eec482aa65
|
@ -30,7 +30,12 @@ sub htmlize (@) { #{{{
|
||||||
else {
|
else {
|
||||||
eval q{use Text::Markdown};
|
eval q{use Text::Markdown};
|
||||||
if (! $@) {
|
if (! $@) {
|
||||||
$markdown_sub=\&Text::Markdown::markdown;
|
if (Text::Markdown->can('markdown')) {
|
||||||
|
$markdown_sub=\&Text::Markdown::markdown;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$markdown_sub=\&Text::Markdown::Markdown;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
do "/usr/bin/markdown" ||
|
do "/usr/bin/markdown" ||
|
||||||
|
|
|
@ -14,9 +14,8 @@ ikiwiki (2.41) UNRELEASED; urgency=low
|
||||||
* rcs_diff is a new function that rcs modules should implement.
|
* rcs_diff is a new function that rcs modules should implement.
|
||||||
* Implemented rcs_diff for git, svn, and tla (tla version untested).
|
* Implemented rcs_diff for git, svn, and tla (tla version untested).
|
||||||
Mercurial and monotone still todo.
|
Mercurial and monotone still todo.
|
||||||
* Use Text::Markdown::markdown, since version 1.0.16 of Text::Markdown
|
* Support Text::Markdown::markdown, which is the spelling used by
|
||||||
no longer supports Text::Markdown::Markdown. All old versions of
|
version 1.0.16 of Text::Markdown.
|
||||||
Text::Markdown also support the lower-case version.
|
|
||||||
|
|
||||||
-- martin f. krafft <madduck@debian.org> Sun, 02 Mar 2008 17:46:38 +0100
|
-- martin f. krafft <madduck@debian.org> Sun, 02 Mar 2008 17:46:38 +0100
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue