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

@ -45,30 +45,33 @@ padding-bottom: 0.15em;
.subg a:visited {
color: #666;
}
.mail {
display: block;
margin-top: 0.1em;
margin-left: 0.5em;
}
.text {
display: block;
margin-left: 0.5em;
margin-top: -0.8em;
margin-right: 0.5em;
}
.headall {
text-align: center;
display: block;
color: #000;
background-color: #C9C9C9;
border-radius: 5px;
width: 75%;
position: top;
top: 0px;
margin-left: 15%;
margin-right: 15%;
margin-bottom: 0%;
}
.mail {
display: block;
margin-top: 0.1em;
margin-left: 0.5em;
}
.text {
display: block;
margin-left: 0.5em;
margin-top: -0.8em;
margin-right: 0.5em;
}
.post li {
margin-left: 1.5em;
}
.headall {
text-align: center;
display: block;
color: #000;
background-color: #C9C9C9;
border-radius: 5px;
width: 75%;
position: top;
top: 0px;
margin-left: 15%;
margin-right: 15%;
margin-bottom: 0%;
}
.headall p {
margin-top: -1.5em;
text-align: center;