mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 13:29:50 +02:00
Replace <sup> with ^ and delete </sup> when copying markdown.
This commit is contained in:
@@ -53,7 +53,7 @@ public class CopyTextBottomSheetFragment extends RoundedBottomSheetDialogFragmen
|
|||||||
ButterKnife.bind(this, rootView);
|
ButterKnife.bind(this, rootView);
|
||||||
|
|
||||||
String rawText = getArguments().getString(EXTRA_RAW_TEXT);
|
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 -> {
|
copyRawTextTextView.setOnClickListener(view -> {
|
||||||
showCopyDialog(rawText);
|
showCopyDialog(rawText);
|
||||||
|
Reference in New Issue
Block a user