diff --git a/.feed.xml.swp b/.feed.xml.swp new file mode 100644 index 0000000..e4925f5 Binary files /dev/null and b/.feed.xml.swp differ diff --git a/lib/PostText.pm b/lib/PostText.pm index 8ec277f..6b38cfc 100644 --- a/lib/PostText.pm +++ b/lib/PostText.pm @@ -31,7 +31,10 @@ sub startup($self) { }); $self->helper(hr => sub ($c) { - state $hr = HTML::Restrict->new(strip_enclosed_content => []) + state $hr = HTML::Restrict->new( + filter_text => 0, + strip_enclosed_content => [] + ) }); $self->helper(thread => sub ($c) { diff --git a/lib/PostText/Controller/Thread.pm b/lib/PostText/Controller/Thread.pm index b9b1087..f913097 100644 --- a/lib/PostText/Controller/Thread.pm +++ b/lib/PostText/Controller/Thread.pm @@ -105,15 +105,16 @@ sub feed($self) { ); for my $thread (@{$threads}) { - my $item_link = - $self->url_for( - single_thread => {thread_id => $thread->{'id'}} - )->to_abs; + my $description = + $self->markdown($self->truncate_text($thread->{'body'})); + my $item_link = $self->url_for( + single_thread => {thread_id => $thread->{'id'}} + )->to_abs; $rss->add_item( title => $thread->{'title'}, link => $item_link, - description => $self->truncate_text($thread->{'body'}), + description => $description, author => $thread->{'author'}, guid => $thread->{'id'}, pubDate => $thread->{'date'}