diff options
author | Koosha KM <koosha.khajeh@gmail.com> | 2014-08-28 17:17:54 +0000 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-08-28 17:17:54 +0000 |
commit | ec5caa57cc14a328b8b994d49cb8def8eb95aea7 (patch) | |
tree | 08eec320a2361b41fcd400259770d6357a913e15 /Bugzilla.pm | |
parent | Bug 1056087 - contrib/merge-users.pl fails if there are no duplicate bug_user... (diff) | |
download | bugzilla-ec5caa57cc14a328b8b994d49cb8def8eb95aea7.tar.gz bugzilla-ec5caa57cc14a328b8b994d49cb8def8eb95aea7.tar.bz2 bugzilla-ec5caa57cc14a328b8b994d49cb8def8eb95aea7.zip |
Bug 330707: Add optional support for MarkDown
r=dkl,a=sgreen
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 24ce65c2e..e1f2fde3b 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -397,6 +397,11 @@ sub logout_request { # there. Don't rely on it: use Bugzilla->user->login instead! } +sub markdown { + require Bugzilla::Markdown; + return $_[0]->request_cache->{markdown} ||= Bugzilla::Markdown->new(); +} + sub job_queue { require Bugzilla::JobQueue; return $_[0]->request_cache->{job_queue} ||= Bugzilla::JobQueue->new(); @@ -944,6 +949,10 @@ Returns the local timezone of the Bugzilla installation, as a DateTime::TimeZone object. This detection is very time consuming, so we cache this information for future references. +=item C<markdown> + +The current L<Markdown|Bugzilla::Markdown> object, to be used for Markdown rendering. + =item C<job_queue> Returns a L<Bugzilla::JobQueue> that you can use for queueing jobs. |