From d9323c721bf8353bffe8c5ee9e0d0e43785503d9 Mon Sep 17 00:00:00 2001 From: swag Date: Tue, 25 Apr 2023 12:03:05 -0400 Subject: [PATCH] Set up @EXPORT for Markdown --- lib/PostText.pm | 2 +- lib/PostText/Markdown.pm | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/PostText.pm b/lib/PostText.pm index ccb85ce..1b496f1 100644 --- a/lib/PostText.pm +++ b/lib/PostText.pm @@ -64,7 +64,7 @@ sub startup($self) { }); $self->helper(markdown => sub ($c, $input_text) { - PostText::Markdown::Markdown($input_text) + Markdown($input_text) }); # Finish configuring some things diff --git a/lib/PostText/Markdown.pm b/lib/PostText/Markdown.pm index 95c95c0..a43d956 100644 --- a/lib/PostText/Markdown.pm +++ b/lib/PostText/Markdown.pm @@ -14,6 +14,9 @@ use v5.36; use Digest::MD5 qw(md5_hex); use vars qw($VERSION); $VERSION = '1.0.1'; + +use Exporter qw{import}; +our @EXPORT = qw{Markdown}; # Tue 14 Dec 2004 ## Disabled; causes problems under Perl 5.6.1: