Resolves #37, basic Discord markdown parsing

Adds support for bold, italics, underline, strikethrough, code, and blockcode (no Syntax highlighting yet)
This commit is contained in:
Jeremy Zhang
2017-08-10 01:00:14 +00:00
parent b3d5a7e171
commit 8f56bea4cc
2 changed files with 29 additions and 2 deletions

View File

@ -169,6 +169,7 @@ body > div.navbar-fixed > nav > div {
#chatcontent > p {
display: table;
width: 90%;
}
#chatcontent > p > span {
@ -391,8 +392,7 @@ a {
display: table-header-group;
}
.chatmessage {
display: table-footer-group;
display: inline-block;
display: inline;
color: rgb(195, 196, 197);
}
@ -403,4 +403,19 @@ p.mentioned {
p.mentioned span.chatmessage {
color: #ff5252;
}
.chatmessage code {
background-color: gray;
color: lightgray;
border-radius: 5px;
padding: 2px;
}
.chatmessage code.blockcode {
width: 100%;
display: inline-block;
white-space: pre-wrap;
line-height: 15px;
padding: 5px;
}