mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-12 17:11:20 +01:00
Add blockquote formatting
This commit is contained in:
parent
64cb595f0d
commit
747c4dc63e
@ -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%;
|
||||
|
@ -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(/^> (.*?)$/gm, "<span class=\"blockquote\">$1</span>");
|
||||
if (links) {
|
||||
for (var i = 0; i < links.length; i++) {
|
||||
text = text.replace("$LINK"+i+"$", links[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user