diff options
author | Vitaly Takmazov | 2024-02-02 14:25:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-02-02 14:58:56 +0300 |
commit | 0e2aab26f08a6ec4f187c1a845d0a9b0e8f4bf99 (patch) | |
tree | a8492860d3f92e5549b112e881147515ae9e1976 /src/main | |
parent | 5ef424120ed694b1f69daeafaa1454455d13dee2 (diff) |
Use <blockquote /> tag for quotes
* fix compatibility with Mastodon
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/assets/style.css | 5 | ||||
-rw-r--r-- | src/main/java/com/juick/util/MessageUtils.java | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/main/assets/style.css b/src/main/assets/style.css index e8ddad56..2a5d5a61 100644 --- a/src/main/assets/style.css +++ b/src/main/assets/style.css @@ -584,11 +584,10 @@ article .tags > a::before, /* #region user-generated texts */ -q:before, -q:after { +blockquote:before, +blockquote:after { content: ""; } -q, blockquote { border-left: 3px solid #CCC; color: #666; diff --git a/src/main/java/com/juick/util/MessageUtils.java b/src/main/java/com/juick/util/MessageUtils.java index ff0641ae..a4407f17 100644 --- a/src/main/java/com/juick/util/MessageUtils.java +++ b/src/main/java/com/juick/util/MessageUtils.java @@ -228,8 +228,8 @@ public class MessageUtils { if (!compatibleWithDurov) { // > citate - msg = msg.replaceAll(citateRegex, "<q>$1</q>"); - msg = msg.replaceAll("</q><q>", "\n"); + msg = msg.replaceAll(citateRegex, "<blockquote>$1</blockquote>"); + msg = msg.replaceAll("</blockquote><blockquote>", "\n"); msg = msg.replaceAll("\n", "<br/>\n"); } |