From f22b649bee3b75bbf9687facf2895ec3653f593e Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 8 Apr 2021 00:06:35 +0800 Subject: Replace with ^ and delete when copying markdown. --- .../bottomsheetfragments/CopyTextBottomSheetFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java') 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("", "^").replaceAll("", ""); copyRawTextTextView.setOnClickListener(view -> { showCopyDialog(rawText); -- cgit v1.2.3