Add blockquote formatting

This commit is contained in:
Jeremy Zhang 2020-03-07 16:57:10 -08:00
parent 64cb595f0d
commit 747c4dc63e
2 changed files with 9 additions and 0 deletions

View File

@ -904,6 +904,14 @@ p.mentioned span.chatmessage {
margin-right: 6px;
}
#chatcontent .blockquote {
display: inline-block;
border-left: 5px;
padding-left: 10px;
border-left-color: rgba(255, 255, 255, 0.3);
border-left-style: solid;
}
.wdt-emoji-popup {
position: fixed;
bottom: 5%;

View File

@ -1509,6 +1509,7 @@
text = text.replace(/~~(.*?)~~/g, "<del>$1</del>");
text = text.replace(/\`\`\`([^]+?)\`\`\`/g, "<code class=\"blockcode\">$1</code>");
text = text.replace(/\`(.*?)\`/g, "<code>$1</code>");
text = text.replace(/^&gt; (.*?)$/gm, "<span class=\"blockquote\">$1</span>");
if (links) {
for (var i = 0; i < links.length; i++) {
text = text.replace("$LINK"+i+"$", links[i]);