aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-04-07 16:06:35 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-04-07 16:06:35 +0000
commitf22b649bee3b75bbf9687facf2895ec3653f593e (patch)
tree0f0b7dfb83204fc1b8d216496ddacbb27cd13151 /app/src/main/java
parent2b0b7d93a8c759ed9cff5bd13d414c4e645d0111 (diff)
downloadinfinity-for-reddit-f22b649bee3b75bbf9687facf2895ec3653f593e.tar
infinity-for-reddit-f22b649bee3b75bbf9687facf2895ec3653f593e.tar.gz
infinity-for-reddit-f22b649bee3b75bbf9687facf2895ec3653f593e.tar.bz2
infinity-for-reddit-f22b649bee3b75bbf9687facf2895ec3653f593e.tar.lz
infinity-for-reddit-f22b649bee3b75bbf9687facf2895ec3653f593e.tar.xz
infinity-for-reddit-f22b649bee3b75bbf9687facf2895ec3653f593e.tar.zst
infinity-for-reddit-f22b649bee3b75bbf9687facf2895ec3653f593e.zip
Replace <sup> with ^ and delete </sup> when copying markdown.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/CopyTextBottomSheetFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/CopyTextBottomSheetFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/CopyTextBottomSheetFragment.java
index c96658c8..d29a1510 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/CopyTextBottomSheetFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/CopyTextBottomSheetFragment.java
@@ -53,7 +53,7 @@ public class CopyTextBottomSheetFragment extends RoundedBottomSheetDialogFragmen
ButterKnife.bind(this, rootView);
String rawText = getArguments().getString(EXTRA_RAW_TEXT);
- String markdownText = getArguments().getString(EXTRA_MARKDOWN);
+ String markdownText = getArguments().getString(EXTRA_MARKDOWN).replaceAll("<sup>", "^").replaceAll("</sup>", "");
copyRawTextTextView.setOnClickListener(view -> {
showCopyDialog(rawText);