Markdown formatting

This commit is contained in:
Brian O'Donnell
2015-04-23 16:57:18 -04:00
parent 2cd286816b
commit baf2efc4ca
+3 -2
View File
@@ -117,11 +117,12 @@ sub publish_feed_items {
foreach my $update ( @updates ){
my $content = $update->{'hashtags'};
# to hyperlink the title or not to hyperlink the title...
if( $params{'raw_link'} ){
$content = $update->{'title'} . "\n" . $update->{'link'} . "\n" . $content;
$content = '### ' . $update->{'title'} . "\n" . $update->{'link'} . "\n" . $content;
}
else {
$content = '[' . $update->{'title'} . '](' . $update->{'link'} . ")\n" . $content;
$content = '### [' . $update->{'title'} . '](' . $update->{'link'} . ")\n" . $content;
}
print "Publishing $params{'feed_id'}\t$update->{'guid'}\n";