List markup

This commit is contained in:
Difrex(Denis Zheleztsov) 2014-08-06 14:55:08 +04:00
parent 61cf2b9150
commit 1abb52c99a
2 changed files with 28 additions and 24 deletions

View File

@ -169,6 +169,7 @@ sub pre {
$post =~ s/.?\*(.+)\*.?/&nbsp<b>$1<\/b>&nbsp/g;
$post =~ s/^$/<br>\n/g;
$post =~ s/(.?)\n/$1<br>\n/g;
$post =~ s/\*(.+)/<li>$1<\/li>\n/g;
$post
=~ s/(https?:\/\/.+\.(jpg|png|gif))/<a href="$1"><img src="$1" width="15%" height="15%" \/><\/a>/g;
$post

View File

@ -56,6 +56,9 @@ padding-bottom: 0.15em;
margin-top: -0.8em;
margin-right: 0.5em;
}
.post li {
margin-left: 1.5em;
}
.headall {
text-align: center;
display: block;