| 1 | #! /bin/false | ||
| 2 | |||
| 3 | # Copyright (C) 2016-2018 Guido Flohr <guido.flohr@cantanea.com>, | ||
| 4 | # all rights reserved. | ||
| 5 | |||
| 6 | # This program is free software: you can redistribute it and/or modify | ||
| 7 | # it under the terms of the GNU General Public License as published by | ||
| 8 | # the Free Software Foundation; either version 3 of the License, or | ||
| 9 | # (at your option) any later version. | ||
| 10 | |||
| 11 | # This program is distributed in the hope that it will be useful, | ||
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | # GNU General Public License for more details. | ||
| 15 | |||
| 16 | # You should have received a copy of the GNU General Public License | ||
| 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | package Qgoda::Processor::Markdown; | ||
| 20 | 2 | $Qgoda::Processor::Markdown::VERSION = 'v0.9.2'; | |
| 21 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 2 | ▶ | use base qw(Qgoda::Processor); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | 2 | ▶ | use Text::Markdown qw(markdown); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | sub new { | ||
| 28 | 2 | ▶ | my ($class, %options) = @_; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 29 | |||
| 30 | 2 | my $self = $class->SUPER::new(%options); | |
| 31 | 2 | $self->{__options} = \%options; | |
| 32 | |||
| 33 | 2 | return $self; | |
| 34 | } | ||
| 35 | |||
| 36 | sub process { | ||
| 37 | 3 | ▶ | my ($self, $content, $asset, $filename) = @_; |
|
Subroutine
process: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 38 | |||
| 39 | 3 | return markdown $content; | |
| 40 | } | ||
| 41 | |||
| 42 | 2 | 1; | |
| 43 | |||
| 44 | =head1 NAME | ||
| 45 | |||
| 46 | Qgoda::Processor::Markdown - Qgoda Processor For Markdown | ||