Skip to content

Commit

Permalink
Insinuating Text::SmartyPants into the codebase (since it's not reall…
Browse files Browse the repository at this point in the history
…y on CPAN, but its license does seem to allow this sort of thing). Running published posts through SmartyPants as well as Markdown.
  • Loading branch information
jmacdotorg committed Jan 1, 2015
1 parent 87073f0 commit f91c6c9
Show file tree
Hide file tree
Showing 2 changed files with 1,425 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Plerd/Post.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package Plerd::Post;
use Moose;
use DateTime;
use Text::Markdown qw( markdown );
use Text::SmartyPants;
use URI;

has 'plerd' => (
Expand Down Expand Up @@ -129,7 +130,7 @@ sub _process_source_file {
while ( <$fh> ) {
$body .= $_;
}
$self->body( markdown( $body ) );
$self->body( Text::SmartyPants::process( markdown( $body ) ) );
}

sub publish {
Expand Down
Loading

0 comments on commit f91c6c9

Please sign in to comment.